Nuqs adapter (query string state management) #1123
Replies: 3 comments 5 replies
-
|
I see there is a hydration error when loading the page with the query string in the URL. Hmm... maybe I need to pass the query from the page props rather than get it from useRouter. |
Beta Was this translation helpful? Give feedback.
-
|
cc @franky47 |
Beta Was this translation helpful? Give feedback.
-
|
That's awesome! (I'm the author of nuqs) Feel free to open a PR to add it to the community adapters in the nuqs repo. The next step would be to add support for the Thanks @tylersayshi for the ping! |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
I saw @tylersayshi's blog article about nuqs and wanted to try it.
I made a Waku adapter by following nuqs' community adapter for the One framework:
And then I added it to my root layout wrapping
{children}. It works great!I posted the example to github here - https://github.com/rmarscher/waku-nuqs
And I currently have it deployed here: https://waku-nuqs.martiandev.workers.dev/?value=Hello
Edit: my community example was merged. Use this guide to add Nuqs to your Waku app. https://github.com/47ng/nuqs/blob/next/packages/docs/content/docs/community-adapters/waku.mdx
Beta Was this translation helpful? Give feedback.
All reactions