We need some way to access the history and location of your current router, the Provider component sets it up so we can do so. If you were building only for one specific router (e.g. React Router) you could just use their hooks directly within a useQueryParam hook, but this lib is not setup that way.
We need some way to access the history and location of your current router, the Provider component sets it up so we can do so. If you were building only for one specific router (e.g. React Router) you could just use their hooks directly within a useQueryParam hook, but this lib is not setup that way.