pbeshai / use-query-params

React Hook for managing state in URL query parameters with easy serialization.
https://pbeshai.github.io/use-query-params
ISC License
2.13k stars 95 forks source link

usage with react router v6 useRoutes hook #238

Closed createdbymahmood closed 1 year ago

createdbymahmood commented 1 year ago

Hi, I'm getting the error useQueryParams must be used within a QueryParamProvider even with the adapter but without <Routes /> as the following;

<QueryParamProvider adapter={ReactRouter6Adapter}>
    {useRoutes(routes)}
</QueryParamProvider>;

Any chance to integrated it like this?

createdbymahmood commented 1 year ago

Damn, It was my mistake, Thank you all.