WIP: can deploy?
This commit is contained in:
+3
-3
@@ -14,9 +14,9 @@ const noopStorage = {
|
||||
},
|
||||
};
|
||||
|
||||
// redux-persist's bundled storage needs `localStorage`, which isn't available
|
||||
// during server-side rendering (and can throw in locked-down browsers), so
|
||||
// this is a minimal storage engine that never touches `redux-persist/lib/storage`.
|
||||
// redux-persist's bundled storage engine can throw or come back malformed in
|
||||
// some browsers (private mode, locked-down storage), so this is a minimal
|
||||
// storage engine that never touches `redux-persist/lib/storage`.
|
||||
function createLocalStorageEngine() {
|
||||
if (typeof window === "undefined") return noopStorage;
|
||||
try {
|
||||
|
||||
Reference in New Issue
Block a user