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 there is no guidance for updating multiple query parameters at once. If you aren't sure of exactly sure of how the library works this can lead to unintended behavior and errors.
For instance if I have a date range component that should update 3 parameters simultaneously:
{period?: string;
from?: number;
to?: number;}
In a change function I may make the mistake of writing it like:
Describe the problem
Currently there is no guidance for updating multiple query parameters at once. If you aren't sure of exactly sure of how the library works this can lead to unintended behavior and errors.
For instance if I have a date range component that should update 3 parameters simultaneously:
In a change function I may make the mistake of writing it like:
In this case I would call
goto()
3 times on the page causing the following error to appear in the browser:This could easily be avoided by using the
update
function on the store:Describe the proposed solution
Add documentation in the README with guidance on how to handle
batch updating
query parameters like shown above.The text was updated successfully, but these errors were encountered: