useSearchState(
// Send any state to the search/query string
// Changing this value will cause a pushState()
{
foo: 123,
bar: 42,
},
// Handle changes in the search/query string
// (called once for the initial page load, and for
// subsequent changes including on forward/back
// navigation by the user)
({ foo, bar }) => {
// For example, copy to local state:
// setFoo(foo)
// setBar(bar)
}
);
sailnjord/use-search-state
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
About
No description, website, or topics provided.
Resources
License
Stars
Watchers
Forks
Packages 0
No packages published