isomorfeus-react 16.9.20 → 16.9.21
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/lib/isomorfeus/config.rb +5 -1
- data/lib/lucid_component/reducers.rb +2 -0
- data/lib/react/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: dfe23e6c592fbbf2bc84982f9308dc027adee9780dff2cc7e422c77d714a8080
|
4
|
+
data.tar.gz: 82653e8f822006e30516f2fb5e03176442f994422dc3ff34b252c64a18ac7fb2
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 071d31c5dddf4bee46623127429bcff0abcbce8497c18b6f0896f07d1dd6ebb29e8baad5dbb9b0969a5e5f01e8051d4a429a22bad4cad4481d3212f0a5574117
|
7
|
+
data.tar.gz: fbc87fa35eb8f6ecd7f98fbddbd66510e694c74e532a00a2a9f022aa6082df636501beed0dc86fd6126edf13d1ef371b1fb3e55b258c24fe283c159479ecba28
|
data/lib/isomorfeus/config.rb
CHANGED
@@ -76,7 +76,11 @@ module Isomorfeus
|
|
76
76
|
begin
|
77
77
|
if Isomorfeus.top_component
|
78
78
|
ReactDOM.find_dom_node(Isomorfeus.top_component) # if not mounted will raise
|
79
|
-
|
79
|
+
if `typeof Opal.global.deepForceUpdate() === 'undefined'`
|
80
|
+
Isomorfeus.top_component.JS.forceUpdate()
|
81
|
+
else
|
82
|
+
`Opal.global.deepForceUpdate(#{Isomorfeus.top_component})`
|
83
|
+
end
|
80
84
|
end
|
81
85
|
rescue
|
82
86
|
`location.reload()` if on_browser?
|
@@ -15,6 +15,7 @@ module LucidComponent
|
|
15
15
|
new_state = {}.merge!(prev_state) # make a copy of state
|
16
16
|
new_state[action[:object_id]] = {} unless new_state.key?(action[:object_id])
|
17
17
|
new_state[action[:object_id]].merge!(action[:name] => action[:value])
|
18
|
+
# new_state == prev_state ? prev_state : new_state
|
18
19
|
new_state
|
19
20
|
end
|
20
21
|
else
|
@@ -31,6 +32,7 @@ module LucidComponent
|
|
31
32
|
new_state = {}.merge!(prev_state) # make a copy of state
|
32
33
|
new_state[action[:class]] = {} unless new_state.key?(action[:class])
|
33
34
|
new_state[action[:class]].merge!(action[:name] => action[:value])
|
35
|
+
# new_state == prev_state ? prev_state : new_state
|
34
36
|
new_state
|
35
37
|
end
|
36
38
|
else
|
data/lib/react/version.rb
CHANGED