We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 75bcae6 commit f8a23afCopy full SHA for f8a23af
.core/app/reactium-hooks.js
@@ -4,7 +4,7 @@ import _ from 'underscore';
4
import deps from 'dependencies';
5
6
import('reactium-core/sdk').then(
7
- async ({ default: Reactium, useHookComponent }) => {
+ async ({ default: Reactium, ReactiumSyncState }) => {
8
Reactium.Hook.register(
9
'component-bindings',
10
async context => {
@@ -121,6 +121,17 @@ import('reactium-core/sdk').then(
121
Reactium.Enums.priority.highest,
122
'REACTIUM_APP_BOOT_MESSAGE',
123
);
124
+
125
+ Reactium.Hook.register(
126
+ 'sdk-init',
127
+ async () => {
128
+ Reactium.State = new ReactiumSyncState(
129
+ op.get(window, 'state', {}),
130
+ );
131
+ },
132
+ Reactium.Enums.priority.highest,
133
+ 'REACTIUM-STATE-INIT',
134
135
},
136
137
0 commit comments