isomorfeus-react 16.10.3 → 16.10.4

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: c62bcd6328477e91bf3d3a41ea01de2575329d2756281d998e9ba9cdda0eb7a0
4
- data.tar.gz: 692740df40e28d0a2beb60e8e3abcf0513d2495e16e2cbb850147cad23db92a4
3
+ metadata.gz: e390e7a60d960e4f5505a7ba204ae646f5e1fbb9ec9456f92225af8f812dea29
4
+ data.tar.gz: c44535422d9175dbb3a289bb52ac823d35bc508c92865f75cae635f6bbba199b
5
5
  SHA512:
6
- metadata.gz: 875510cfd4c74e740b05b5ee5058350a6bbf91e94fdafd5b172622e458034fc62abff23737fef7e62a42ab735a737607b8a18d845781e636adb5e4e812092362
7
- data.tar.gz: ce7efc12c02fdf1a9f6f50352973b95778e067131b612630443a65f2f6fe6f2064c8c2b51e4e1d948ef6f0e0e1b751895096921e38b5860105fc8f2c24774c11
6
+ metadata.gz: 430093313eccc5fa2f9277d533b9ddd88dbebf5095bbee93e369943336ec3944f89cc7836f014b71d339ddd2fd4c285303ccaaf2917381e165784b4c4714c31d
7
+ data.tar.gz: 8da7f0fba7ff5ec841458ccf2fe785936336e9a14adbe78689b8ef64e4d2ce183755a86554f3e8ac50e05cde37e1d1f527761a43ee19fe3a6b2b949991cc2751
@@ -12,8 +12,12 @@ module LucidComponent
12
12
  Isomorfeus.store.dispatch(action)
13
13
  else
14
14
  # check if we have a component local state value
15
- if `this.native_component_instance.context.application_state.hasOwnProperty(key)`
15
+ if `this.native_component_instance.context.application_state && this.native_component_instance.context.application_state.hasOwnProperty(key)`
16
16
  return @native_component_instance.JS['context'].JS[:application_state].JS[key]
17
+ end
18
+ a_state = Isomorfeus.store.get_state
19
+ if a_state.key?(:application_state) && a_state[:application_state].key?(key)
20
+ return a_state[:application_state][key]
17
21
  elsif @component_instance.class.default_app_store_defined && @component_instance.class.app_store.to_h.key?(key)
18
22
  # check if a default value was given
19
23
  return @component_instance.class.app_store.to_h[key]
@@ -1,3 +1,3 @@
1
1
  module React
2
- VERSION = '16.10.3'
2
+ VERSION = '16.10.4'
3
3
  end
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.10.3
4
+ version: 16.10.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Jan Biedermann
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2019-10-03 00:00:00.000000000 Z
11
+ date: 2019-10-04 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: oj