next-state-as-search
This library will store your state in the search params inside the url, this will be validated with zod.
Shoutout to @tanstack/react-router
for the insparation building this
Installation
$ npm i next-state-as-search
# or
$ yarn add next-state-as-search
# or
$ pnpm add next-state-as-search
Testing
- ssr
TODO:
-
linting
-
publish
-
ci
-
unit test code coverage
-
default state
- merge result with default state
-
access router settings in setStateAction
-
shallow
andscrolling
option
-
-
custom parsing options
- all
- for each key
- partial key map
-
better typesafety using consumer hooks