Skip to content

Add error in dev if QueryParamContext is not available #82

@dprgarner

Description

@dprgarner

The first example in the Readme is misbehaving when I try it on CodeSandbox. Clicking the buttons does call the useQueryParam setters and update the query params, but the new values are not being displayed. The same issue happens with useQueryParams.

This is because there doesn't appear to be anything triggering a re-render. I suggest adding something that manually re-renders the component; perhaps just calling the setter of a hidden useState hook would be fine?

Metadata

Metadata

Assignees

Labels

No labels
No labels

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions