pbeshai / use-query-params

React Hook for managing state in URL query parameters with easy serialization.

Home Page:https://pbeshai.github.io/use-query-params

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

usage with react router v6 useRoutes hook

createdbymahmood opened this issue · comments

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?

Damn, It was my mistake,
Thank you all.