use-query-params icon indicating copy to clipboard operation
use-query-params copied to clipboard

Reset single param if any others change.

Open ETFairfax opened this issue 4 months ago • 2 comments

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 👍

ETFairfax avatar Oct 02 '24 16:10 ETFairfax