use-query-params
use-query-params copied to clipboard
Reset single param if any others change.
Hi,
Is it possible to reset a single param if any others change?
I have a pagination param which I would like to reset to 0 if any other filter params change.
I was thinking of something like const { query, setQuery } = useFiltering(queryParamDefaults, () => ({ page: 0 }));
Also, I notice the library hasn't been update all that much recently. Is it still being maintained? If not, are there other solutions you'd recommend?
Many thanks for your hard work 👍