SorinS
Convex Community7mo ago
14 replies
Sorin

Query cache usage question

I am using React with convex and the query cache from helpers.

If I add useQuery(api.todos.listTodos) in multiple components in the same page, will this generate one query for each mount (as in multiple queries to this function in the same page) or is it using a global cache and call the query function just once?

I am coming from TenStack Query that reuses the active query across components and i cn;t find specific about this behaviour in useQuery from convex.


Thanks
Was this page helpful?