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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 91abc0193960a2bb4c05a89d3669887aa626f0c65ce98a6c550431ea025f4231
4
- data.tar.gz: e6787cf12925f91c1f506cbae90b10ba56d19c8b74118e29582a20a9892ba471
3
+ metadata.gz: a15d9cadd4a78dd05440af2a93cc177a35d493e74e6ebd8e41910f3935791b9b
4
+ data.tar.gz: 784cee9416986e08bb1109e5b68538a11e47442fd1fc2e0f5f4afd72486d5337
5
5
  SHA512:
6
- metadata.gz: 10c01df5cdfe32ed41b65071709462ba1c9d4739b84647de6e53d841e839a62d00b4c6ed4df3000d4f5376bfa9637c0fc0af4488a35d6c8db47309594dce7fac
7
- data.tar.gz: e948258d6713e259431f4b323bd68ab5b84b2f226b6f0633fd50960fcec4a835a2ce5e6d72619fcadfde8e6072d7bc5389d5b30d905d27582f5694ad10ad24de
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
- #{Isomorfeus::Transport.promise_connect(`global.IsomorfeusSessionId`).then { `self.async_render_pass(component_name, props)` }}
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;
@@ -1,3 +1,3 @@
1
1
  module Preact
2
- VERSION = '10.6.53'
2
+ VERSION = '10.6.54'
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: isomorfeus-preact
3
3
  version: !ruby/object:Gem::Version
4
- version: 10.6.53
4
+ version: 10.6.54
5
5
  platform: ruby
6
6
  authors:
7
7
  - Jan Biedermann