Client-side caching of queries
Does Convex have a built-in client-side cache for when the same
useQuery
statement is used across multiple React components that will be rendered within the same render cycle; or is the cache strictly server-side, thus causing a web request to still be made for each useQuery
statement?1 Reply
Queries are cached by
ConvexClient
and ConvexReactClient
. It's easy to test this yourself: Call useQuery multiple times and observe what's happening on your dashboard's Logs page.