next-state-as-search
TypeScript icon, indicating that this package has built-in type declarations

0.0.6 • Public • Published

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 and scrolling option
  • custom parsing options

    • all
    • for each key
    • partial key map
  • better typesafety using consumer hooks

Package Sidebar

Install

npm i next-state-as-search

Weekly Downloads

0

Version

0.0.6

License

MIT

Unpacked Size

37 kB

Total Files

8

Last publish

Collaborators

  • w1ckh3ad