static void _setupStore() { var shareState = new ShareState(); EditorJsonUtility.FromJsonOverwrite( SessionState.GetString(typeof(ConnectShareEditorWindow).Name, "{}"), shareState ); _store = new Store <AppState>( ShareReducer.reducer, initialState: new AppState(shareState: shareState), middlewares: ShareMiddleware.Create() ); }
static void _setupStore() { _store = new Store <AppState>(ShareReducer.reducer, initialState: new AppState(shareState: new ShareState()), middlewares: ShareMiddleware.Create()); }