From 33ef84c73e19dc7596bfb8b4a43d970b438b40d9 Mon Sep 17 00:00:00 2001 From: Valtteri Karesto Date: Fri, 19 Nov 2021 16:02:15 +0200 Subject: [PATCH] hotfix:fix state temporarily --- state.ts | 22 +++++++++++----------- 1 file changed, 11 insertions(+), 11 deletions(-) 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);