ZachooZ
Convex Community12mo ago
9 replies
Zachoo

Optimise Fetching data

Hi there! I have an admin dashboard that displays information about users and their apartments. The app includes two lists: one on the /users page that fetches user data and another on the /apartments page that retrieves apartment data, both using the useQuery hook from Convex.

However, the app feels slow when switching between these pages. Even though I hit the Convex cache, it still fetches data every time and shows a loading state, which interrupts the experience. Is there a better way to structure this so that moving between pages instantly displays cached data and only updates if the data changes—essentially making it feel like I never left the page?
Was this page helpful?