convex.query(someQuery)convex.query(someQuery) in a loader and in a sub component i use useQuery(someQuery)useQuery(someQuery), the query doesn't return a result right away. I would have expected that the value is cached somehow. Isn't that the case? I would love to use loaders to ensure data is there but i don't want to use useLoaderData()useLoaderData() because I loose the real time capabilities of the one-off-query i request in the loaderConvex caches query results automatically. If many clients request the same query, with the same arguments, they will receive a cached response.
undefinedundefined first which leads to flashing of wrong component stateJoin the Discord to ask follow-up questions and connect with the community
Join the Convex Discord! Explore Convex, the backend platform that keeps your app in sync.
16,164 Members
Join