-
|
Hey guys! I recently rewritten it with App router approach and used intercepted route pattern. For example I have a list: For now I solved it with useFilters hook with state in context that now is the source of truth, and query params are used only for cold start. So it works properly on example above. Idk if its even possible to address this issue on library level, but decided to ask for advice either way) |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
|
The URL is the source of truth, so if you want these filters to persist in the item URL, they need to be present there. The serializer can help you with the URL recomposition, as it takes a base path to apply the query state on top of. |
Beta Was this translation helpful? Give feedback.
The URL is the source of truth, so if you want these filters to persist in the item URL, they need to be present there.
The serializer can help you with the URL recomposition, as it takes a base path to apply the query state on top of.