From c02da1828357ed6cb212acb5b149eed695666b1e Mon Sep 17 00:00:00 2001 From: Joseph Turner Date: Tue, 22 Feb 2022 20:34:17 -0800 Subject: [PATCH] attempt persist settings --- src/reducers/index.ts | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/src/reducers/index.ts b/src/reducers/index.ts index 34e27b0..999c040 100644 --- a/src/reducers/index.ts +++ b/src/reducers/index.ts @@ -97,10 +97,17 @@ if (rawWritableIdentities !== null) { preloadedAuthorsState.writableIdentities = JSON.parse(rawWritableIdentities) } +// const rawSettingsState = localStorage.getItem('settingsState') +// const preloadedSettingsState: SettingsState = rawSettingsState !== null +// ? JSON.parse(rawSettingsState) +// : undefined + export const store = createStore( rootReducer, { authors: preloadedAuthorsState + // authors: preloadedAuthorsState, + // settings: preloadedSettingsState }, composeWithDevTools(applyMiddleware(thunk)) ) -- 2.45.2