perf: debounce localStorage save
This commit is contained in:
parent
af6098bfe5
commit
7d71af353e
@ -28,7 +28,7 @@ const store = configureStore({
|
||||
multicall,
|
||||
lists,
|
||||
},
|
||||
middleware: [...getDefaultMiddleware({ thunk: false }), save({ states: PERSISTED_KEYS })],
|
||||
middleware: [...getDefaultMiddleware({ thunk: false }), save({ states: PERSISTED_KEYS, debounce: 1000 })],
|
||||
preloadedState: load({ states: PERSISTED_KEYS }),
|
||||
})
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user