isomorfeus-preact 10.6.42 → 10.6.43
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/isomorfeus/preact_view_helper.rb +2 -2
- data/lib/isomorfeus/ssr.rb +10 -0
- data/lib/preact/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 6f1d8efb23afe0ce1b5f8b40c8d65a7bacd835b1cc43e3cd7edb98895c1afa53
|
4
|
+
data.tar.gz: fb60ce2b755c96fdebb0bb3c8c044fac84a265e1a1d1cfda2ae13da2aa1a8a7e
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 829aefa51447b9b574a3b0aec0ca0a3d228221b8ba778e042e0c254580b7026513426a09d5e47b6e52bafb1894ed6d0cdc2a575e3ec362063612a05d3ff3ae23
|
7
|
+
data.tar.gz: 434e1e4abd520a32a24e71b0df7822fbdc53b57417266494b4417056aa49fd3a4c799acd9c2aee349fe7ffb553a35ad808906149c20b89d4108ff1369b282459
|
@@ -179,8 +179,8 @@ module Isomorfeus
|
|
179
179
|
ctx.exec(ssr_mod)
|
180
180
|
ctx.add_script(key: :first_pass_check, source: '[global.FirstPassFinished, global.NeedFurtherPass, global.Exception ? { message: global.Exception.message, stack: global.Exception.stack } : false ]')
|
181
181
|
ctx.add_script(key: :first_pass_result, source: 'Opal.Isomorfeus.SSR.first_pass_result()')
|
182
|
-
ctx.add_script(key: :still_busy, source: '
|
183
|
-
ctx.add_script(key: :store_busy, source: '
|
182
|
+
ctx.add_script(key: :still_busy, source: 'Opal.Isomorfeus.SSR.still_busy()')
|
183
|
+
ctx.add_script(key: :store_busy, source: 'Opal.Isomorfeus.SSR.store_busy()')
|
184
184
|
ctx.add_script(key: :transport_busy, source: 'global.Opal.Isomorfeus.Transport["$busy?"]()')
|
185
185
|
ctx.add_script(key: :transport_disconnect, source: 'global.Opal.Isomorfeus.Transport.$disconnect()')
|
186
186
|
end
|
data/lib/isomorfeus/ssr.rb
CHANGED
@@ -70,6 +70,16 @@ module Isomorfeus
|
|
70
70
|
global.NeedFurtherPass = (nfp == nil) ? false : nfp;
|
71
71
|
return [rendered_tree, application_state, ssr_styles, global.Opal.Isomorfeus['$ssr_response_status'](), global.NeedFurtherPass, global.Exception ? { message: global.Exception.message, stack: global.Exception.stack } : false];
|
72
72
|
}
|
73
|
+
|
74
|
+
self.still_busy = function(){
|
75
|
+
let nfp = global.Opal.Isomorfeus.Transport["$busy?"]() || global.Opal.Isomorfeus.store["$recently_dispatched?"]();
|
76
|
+
return (nfp == global.Opal.nil) ? false : nfp;
|
77
|
+
}
|
78
|
+
|
79
|
+
self.store_busy = function() {
|
80
|
+
let nfp = global.Opal.Isomorfeus.store["$recently_dispatched?"]();
|
81
|
+
return (nfp == global.Opal.nil) ? false : nfp;
|
82
|
+
}
|
73
83
|
}
|
74
84
|
end
|
75
85
|
end
|
data/lib/preact/version.rb
CHANGED