Chad MaycumberC
Convex Community3y ago
2 replies
Chad Maycumber

What's the best way to handle loading states/states when the value of the query is undefined.

I have a NextJS app and I often notice a flicker after implementing convex when navigating between pages. I'm sure this is because the value gets set to undefined before it's fetched on the mounting of a component.

Is there a way to "cache" queries that haven't changed so that I can mitigate this flicker to first load and provide a loading state, a single time?
Was this page helpful?