Skip to content

Use createSearchParamsCache to share the page params (not just searchParams) #572

Answered by franky47
tordans asked this question in Q&A
Discussion options

You must be logged in to vote

See an example in #573.

You can even access params in parent layouts above the [dynamic] route, as long as you take care of handling errors thrown by the cache (for cousin pages that are not under the [dynamic] path fragment). Whether or not you want to do this is a questionable architecture decision 😅

Replies: 1 comment 3 replies

Comment options

You must be logged in to vote
3 replies
@tordans
Comment options

@franky47
Comment options

@franky47
Comment options

Answer selected by tordans
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants