use-query-params
use-query-params copied to clipboard
React Hook for managing state in URL query parameters with easy serialization.
Hi we have a simple react app that does't use react router. In Version 2 one has to specify the adapter that should be used. We tried to use one...
hi, can this lib works with next.js ? i got this error on page when refresh (ssr mode) .... ``` TypeError: Cannot read property 'search' of undefined ```
Hi, I am using `useQueryParam` in the following manner : ``` import React, { useState } from 'react'; import {Route, Switch} from 'react-router-dom'; import {ConnectedRouter} from 'connected-react-router'; import {QueryParamProvider, NumberParam,...
Hi, can someone help me understand if it's possible to do the following two things? My current implementation is as follows: ``` const [tags, setTags] = useQueryParams({ 0: withDefault(ArrayParam, []),...
Is it possible to use this with a store like Zustand? https://github.com/pmndrs/zustand This is because we have components like: ``` ``` And then each of those has its own state...
Hi, Thanks for the library. We are using use-query-params library in one of our projects and it is working well. But we are unable to handle a special case with...
All of the official types are null-friendly. E.g. the type of a simple parameter such as a `BoolParam` is `bool | null | undefined`. I'm guessing ([based on the docs](https://github.com/pbeshai/use-query-params/tree/master/packages/serialize-query-params#param-types))...
First off, this package is incredible, and I am very grateful for it. I have an app that has several sets of parameters that are of interest to different parts...
I using with react-router 6 This my app config ```typescript export const AppProvider = ({ children }: AppProviderProps) => { return ( {process.env.NODE_ENV !== 'test' && } {children} ) }...
When we call `setQuery` our existing location hash will be emptied. https://codesandbox.io/s/use-query-params-issue-2eh8n7?file=/src/App.js I tried to change, for instance, `ReactRouter5Adapter` to this and it likely solved this problem. ```javascript const ReactRouter5Adapter...