isomorfeus-preact 10.6.53 → 10.6.54
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/ssr/render_core.rb +17 -1
- 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: a15d9cadd4a78dd05440af2a93cc177a35d493e74e6ebd8e41910f3935791b9b
|
4
|
+
data.tar.gz: 784cee9416986e08bb1109e5b68538a11e47442fd1fc2e0f5f4afd72486d5337
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 3d879ecbaa46a298165dafe83a4569916ee0f9baa2df35b34496339e64af2a1e4a17dad47e5481c5d3772688cdb50fc5685571888ba8055e926e9a929fccd697
|
7
|
+
data.tar.gz: ea345e3bb4f1313213c46fdd9c0f7733db3d9d89bfbc42d33d7b93a56b6a144bee6d0b3281233eb949e60ab75aba02d74b85bd12af95494053533a7f4a80dc07
|
@@ -3,7 +3,22 @@ module Isomorfeus
|
|
3
3
|
%x{
|
4
4
|
self.first_pass = function(component_name, props) {
|
5
5
|
if (global.HasTransport) {
|
6
|
-
#{
|
6
|
+
#{
|
7
|
+
Isomorfeus.set_current_user(nil)
|
8
|
+
Isomorfeus::Transport.promise_connect(`global.IsomorfeusSessionId`)
|
9
|
+
.then { `self.async_render_pass(component_name, props)` }
|
10
|
+
.fail do
|
11
|
+
%x{
|
12
|
+
global.ConnectRetries--;
|
13
|
+
if (global.ConnectRetries > 0) {
|
14
|
+
self.first_pass(component_name, props);
|
15
|
+
} else {
|
16
|
+
global.Exception = new Error('Transport within SSR unable to connect!');
|
17
|
+
self.finish_render();
|
18
|
+
}
|
19
|
+
}
|
20
|
+
end
|
21
|
+
}
|
7
22
|
} else {
|
8
23
|
self.async_render_pass(component_name, props);
|
9
24
|
};
|
@@ -70,6 +85,7 @@ module Isomorfeus
|
|
70
85
|
|
71
86
|
self.mount_component = function(session_id, env, locale, location, transport_ws_url, component_name, props, max_passes) {
|
72
87
|
const opi = global.Opal.Isomorfeus;
|
88
|
+
global.ConnectRetries = 5;
|
73
89
|
global.RenderPass = 0;
|
74
90
|
global.Rendering = true;
|
75
91
|
global.MaxPasses = max_passes;
|
data/lib/preact/version.rb
CHANGED