diff --git a/.core/app/reactium-hooks.js b/.core/app/reactium-hooks.js index 04860fa..02fb16b 100644 --- a/.core/app/reactium-hooks.js +++ b/.core/app/reactium-hooks.js @@ -4,7 +4,7 @@ import _ from 'underscore'; import deps from 'dependencies'; import('reactium-core/sdk').then( - async ({ default: Reactium, useHookComponent }) => { + async ({ default: Reactium, ReactiumSyncState }) => { Reactium.Hook.register( 'component-bindings', async context => { @@ -121,6 +121,17 @@ import('reactium-core/sdk').then( Reactium.Enums.priority.highest, 'REACTIUM_APP_BOOT_MESSAGE', ); + + Reactium.Hook.register( + 'sdk-init', + async () => { + Reactium.State = new ReactiumSyncState( + op.get(window, 'state', {}), + ); + }, + Reactium.Enums.priority.highest, + 'REACTIUM-STATE-INIT', + ); }, );