Skip to content

Commit

Permalink
Update state syncing with url
Browse files Browse the repository at this point in the history
  • Loading branch information
sulemanof committed Mar 5, 2020
1 parent 3ab1658 commit 3dac39a
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -85,10 +85,10 @@ export const syncQueryStateWithUrl = (
stateContainer: {
...globalQueryStateContainer,
set: state => {
if (typeof state !== 'object' || state === null) {
return;
if (state) {
// syncState utils requires to handle incoming "null" value
globalQueryStateContainer.set(state);
}
globalQueryStateContainer.set(state);
},
},
storageKey: GLOBAL_STATE_STORAGE_KEY,
Expand Down

0 comments on commit 3dac39a

Please sign in to comment.