Mez
CCConvex Community
•Created by Slewt on 11/1/2024 in #support-community
ConvexQueryCacheProvider Behavior
maybe 5 min is too long then lol!
32 replies
CCConvex Community
•Created by Slewt on 11/1/2024 in #support-community
ConvexQueryCacheProvider Behavior
If I understood the ticket you referenced, the main concern seems to be with
gcTime
of 5 min may grow the cache memory too large if a bunch of new queries are currently subscribed? If so, I think a decent stop gap is to update the document with a Defaults
section that describes the use case and let the user think about changing the gcTime
!32 replies
CCConvex Community
•Created by Slewt on 11/1/2024 in #support-community
ConvexQueryCacheProvider Behavior
if you cache for say 5 min, will the subscription update when new data is added to the table?
32 replies
CCConvex Community
•Created by Slewt on 11/1/2024 in #support-community
ConvexQueryCacheProvider Behavior
if you don't specify the
gcTime
does it default to 10 secs?32 replies
CCConvex Community
•Created by Slewt on 11/1/2024 in #support-community
ConvexQueryCacheProvider Behavior
Thanks for the input @ballingt ! I agree this is the simplest way to use convex with react! Yeah, I was looking at the caching benefits and the status. But if they both are caching then I can stay with tanstack because I like the dev tool!
32 replies
CCConvex Community
•Created by Slewt on 11/1/2024 in #support-community
ConvexQueryCacheProvider Behavior
Got around to trying out the cache from
convex-helpers
and it worked nicely! Can this replace tanstack's useQuery? The following snippet seems to give you the same experience, which is intended. Would this be considered the best practice? They both seem to be caching. Has anyone thought about the differences?
32 replies
CCConvex Community
•Created by Slewt on 11/1/2024 in #support-community
ConvexQueryCacheProvider Behavior
I'd like to learn about it.
32 replies
CCConvex Community
•Created by Slewt on 11/1/2024 in #support-community
ConvexQueryCacheProvider Behavior
Is there a stack post on using the ConvexQueryCacheProvider? Where did you find the docs?
32 replies