Commit 7d71af35 authored by Moody Salem's avatar Moody Salem

perf: debounce localStorage save

parent af6098bf
...@@ -28,7 +28,7 @@ const store = configureStore({ ...@@ -28,7 +28,7 @@ const store = configureStore({
multicall, multicall,
lists, lists,
}, },
middleware: [...getDefaultMiddleware({ thunk: false }), save({ states: PERSISTED_KEYS })], middleware: [...getDefaultMiddleware({ thunk: false }), save({ states: PERSISTED_KEYS, debounce: 1000 })],
preloadedState: load({ states: PERSISTED_KEYS }), preloadedState: load({ states: PERSISTED_KEYS }),
}) })
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment