You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Currently, update function returned from useQueryState is changed when its behavior is changed (when key, history, serializers option is changed in runtime).
This causes previous returned function to go stale, and it should not be used if any of those options are changed.
If those options are persisted inside the hook with a useRef, and the update function accesses it, update function would not have to change and it won't ever become stale.
The text was updated successfully, but these errors were encountered:
Currently, update function returned from
useQueryState
is changed when its behavior is changed (when key, history, serializers option is changed in runtime).This causes previous returned function to go stale, and it should not be used if any of those options are changed.
If those options are persisted inside the hook with a useRef, and the update function accesses it, update function would not have to change and it won't ever become stale.
The text was updated successfully, but these errors were encountered: