useUrlState
hook and state-in-url
library
#70637
Unanswered
asmyshlyaev177
asked this question in
Show and tell
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Hi, I created a library (~2kb) to share state between unrelated components and sync state to URL. Next.js14/15 with app router are supported, and react-router as well.
Unique features iare that can store complex nested objects, types of data are preserved, supports Typescript, API is very similar to
useState
. Works with Server Components, only dynamic rendering, obviously.https://github.com/asmyshlyaev177/state-in-url
Demo https://state-in-url-asmyshlyaev177.vercel.app/
Will appreciate feedback.
Beta Was this translation helpful? Give feedback.
All reactions