Skip to content
This repository has been archived by the owner on Aug 15, 2022. It is now read-only.

Commit

Permalink
fix: invalid config
Browse files Browse the repository at this point in the history
  • Loading branch information
under-ctrl committed Mar 23, 2020
1 parent 0a9ce56 commit 32aefb0
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/store/store.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,17 +12,17 @@ const isDev = process.env.NODE_ENV !== "production";
let localState = appConfig.get("state");
let preloadedState;
if (!localState || isDev) {
localState = JSON.stringify({
localState = {
setting: initialSettingState,
proxy: initialProxyState
});
proxy: initialProxyState,
};
appConfig.set("state", localState);
} else preloadedState = localState;

export const store = configureStore({
reducer: rootReducer,
devTools: isDev,
preloadedState
preloadedState,
});

//Store app state in localStorage, once it is changed.
Expand Down

0 comments on commit 32aefb0

Please sign in to comment.