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
For SPAs, you often want to manipulate the querystring without navigating. React's Dispatch<SetActionState<T>> takes a lambda which passes the current value allowing you to do something like setSearchParams(old => ({ ...old, page: old.page +1 })) instead of re-assembling the whole object for if your queryString becomes large.
Sometimes it's useful to use the search params to store state. We currently have something like this:
Where
setQuery
actually changes the search params and updates the state. I'd love to incorporate this into the library. Any interest?Thinking this look like:
The text was updated successfully, but these errors were encountered: