isomorfeus-react 16.13.7 → 16.13.8
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/isomorfeus-react.rb +3 -3
- data/lib/isomorfeus/react_config.rb +1 -1
- data/lib/react/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: f67822be9b751d903e6d1415ff490453c257885f4e699ad762c084f531daccfe
|
4
|
+
data.tar.gz: a6199d933fcfa3114aa1e65e34625c53f239aacccde3fe3255c6ff977d3a16c8
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 73006371dbdf55f4ffa13d45592e1032c149da4a9a6402b067ae98fd11aba9673d4538a777ba6e4cadf3b0dbba39c93b7d7bfdd122705dc22c9e360d8f1d130d
|
7
|
+
data.tar.gz: 9f58f046646eca578f92f0586afd8386da05fd134898679023284d66b5e5fab6c56d6b762e764eaf200006468954bd99b1b81ad975b48eb4954a1364fe8b4064
|
data/lib/isomorfeus-react.rb
CHANGED
@@ -3,7 +3,7 @@ if RUBY_ENGINE == 'opal'
|
|
3
3
|
require 'active_support/core_ext/string'
|
4
4
|
require 'zeitwerk'
|
5
5
|
|
6
|
-
if
|
6
|
+
if on_browser?
|
7
7
|
require 'browser/event'
|
8
8
|
require 'browser/event_target'
|
9
9
|
require 'browser/delegate_native'
|
@@ -13,7 +13,7 @@ if RUBY_ENGINE == 'opal'
|
|
13
13
|
require 'isomorfeus/react_config'
|
14
14
|
|
15
15
|
# allow mounting of components
|
16
|
-
if
|
16
|
+
if on_browser?
|
17
17
|
require 'isomorfeus/top_level'
|
18
18
|
else
|
19
19
|
require 'isomorfeus/top_level_ssr'
|
@@ -25,7 +25,7 @@ if RUBY_ENGINE == 'opal'
|
|
25
25
|
require 'react/synthetic_event'
|
26
26
|
require 'react/ref'
|
27
27
|
require 'react/children'
|
28
|
-
if
|
28
|
+
if on_browser?
|
29
29
|
require 'react_dom'
|
30
30
|
else
|
31
31
|
require 'react_dom_server'
|
@@ -88,7 +88,7 @@ module Isomorfeus
|
|
88
88
|
def force_render
|
89
89
|
begin
|
90
90
|
if Isomorfeus.top_component
|
91
|
-
ReactDOM.find_dom_node(Isomorfeus.top_component) # if not mounted will raise
|
91
|
+
ReactDOM.find_dom_node(Isomorfeus.top_component) if on_browser? || on_desktop? # if not mounted will raise
|
92
92
|
if `typeof Opal.global.deepForceUpdate === 'undefined'`
|
93
93
|
Isomorfeus.top_component.JS.forceUpdate()
|
94
94
|
else
|
data/lib/react/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: isomorfeus-react
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 16.13.
|
4
|
+
version: 16.13.8
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Jan Biedermann
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2020-03-
|
11
|
+
date: 2020-03-15 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: concurrent-ruby
|