Skip to content
This repository was archived by the owner on Dec 9, 2025. It is now read-only.

Commit 2f97c0c

Browse files
committed
Fixed a bug affecting Firefox users.
1 parent 9a4ba5b commit 2f97c0c

1 file changed

Lines changed: 7 additions & 3 deletions

File tree

App/index.js

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -24,9 +24,13 @@ if (process.env.NODE_ENV !== 'production') {
2424

2525
const persistedState = loadState();
2626

27-
// should not be in the localState, but was saved there by a bug
28-
// now we need this here because some users will have this on their localState.
29-
delete persistedState.options.hydrated;
27+
/*
28+
`options.hydrated` should not be in the localStorage, but was saved there previously. Now we need to delete it here because some users will have it on
29+
their localStorage.
30+
*/
31+
if (persistedState !== undefined) {
32+
delete persistedState.options.hydrated;
33+
}
3034

3135
const store = createStore(
3236
reducer,

0 commit comments

Comments
 (0)