Skip to content

Latest commit

 

History

History
24 lines (17 loc) · 607 Bytes

README.md

File metadata and controls

24 lines (17 loc) · 607 Bytes

Search Params with nuqs Playground

Live demo: nuqs-playground.vercel.app

Playground for the nuqs library.

Spot the difference between client-side and server-side rendering.

If you want to trigger a re-render and access the search params via server-side, you must set shallow: false

Read more about it here.

const [keyword, setKeyword] = useQueryState("keyword", parseAsString);

<input
  onChange={(e) =>
    setKeyword(e.target.value, {
      shallow: false,
    })
  }
/>;