JJJ
Convex Community2y ago
1 reply
JJ

Using usePreloadedQuery with nextjs 14 searchParams

Im having some trouble wrapping my head around the usePreloadQuery and search params. Say I want to have a filter that stores the state in the url, sadly nextjs14 seems to force you into using the client side route cache and toggling between the filters will see some data flicker (the route cache has old data).

Should all of these actually be placed in layouts to avoid the cache when query params change?
Was this page helpful?