sbklS
Convex Community2y ago
3 replies
sbkl

preloadQuery client cache

Using the preloadQuery with nextjs app router, it is server rendering the page as expected. However, when I create a new element in a list that navigates to that page and I hit the back button, the list display is the initial page rendered missing the new item. Then the convex real time server kicks in and the new item appears.
Recorded my screen for demo.
Is there a way to trigger a refetch/invalidate of the preload query after a mutation similar to react-query?
Was this page helpful?