diff --git a/state.ts b/state.ts index ef4a0fe..f7629d1 100644 --- a/state.ts +++ b/state.ts @@ -40,17 +40,17 @@ let initialState = { } } -if (typeof window !== 'undefined') { - try { - localStorageState = localStorage.getItem('hooksIdeState'); - } catch (err) { - console.log(`localStorage state broken`); - localStorage.removeItem('hooksIdeState'); - } -} -if (localStorageState) { - initialState = JSON.parse(localStorageState); -} +// if (typeof window !== 'undefined') { +// try { +// localStorageState = localStorage.getItem('hooksIdeState'); +// } catch (err) { +// console.log(`localStorage state broken`); +// localStorage.removeItem('hooksIdeState'); +// } +// } +// if (localStorageState) { +// initialState = JSON.parse(localStorageState); +// } // Initialize state export const state = proxy(initialState);