Skip to content

Separate groups of params for different routes with overall persistance #602

Answered by franky47
jschuur asked this question in Ideas
Discussion options

You must be logged in to vote

is there an opportunity here for nuqs to offer up some kind of optional persistance layer beyond the URL?

Probably not, the scope of this package is to provide a declarative approach to URL state management, as a 1-1 mapping between the URL and state variables.

State updates can temporarily be decoupled from the URL (I just added a demo of the deferred URL update pattern), but internal states will still be synced by key, so any startDate update would be propagated to any component watching that key.

It sounds like your "persistance layer" for non-selected sets of values would be best placed in an external state management solution (Zustand, Jotai, Context etc).

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by jschuur
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Ideas
Labels
None yet
2 participants