@search-params/ts
v0.0.4
Published
Read and update URLSearchParams with full type-safety
Downloads
2
Readme
Search Params
Read and write URLSearchParams with full type-safety using @search-params/ts
using any UI framework and any schema validation library.
Introduction
This project is heavily inspired by TanStack's Router Search Params with the exception that (a) it isn't limited to a specific React framework and (b) it reads and writes Search Params using the same hook.
Why Search Params?
The URL Search Params is perfectly able to act as a form of global state. If you would like to know more about this, give TanStack's Router Search Params, the "OG" State Manager a read.