Slewt
CCConvex Community
•Created by Slewt on 11/1/2024 in #support-community
ConvexQueryCacheProvider Behavior
I switched to using ConvexQueryCacheProvider in order to keep query subscriptions active for views that are closed and opened frequently.
I get nice instant load times now on the screens/components I use it on. But if I check the network tab in chrome I’m seeing a request to the server going out every single time the page/components loads.
Part of my goal was to freely call the cache without re-calling the convex server for data every single time. Am I doing something wrong or is this intended behavior?
32 replies
CCConvex Community
•Created by Slewt on 10/16/2024 in #support-community
Is using Convex Ents encouraged/recommended?
I just found Convex Ents and I’m wondering if it’s encouraged to use it over vanilla convex or not?
Is it kept up to date nicely? Is it problematic for any reason?
Ents seems pretty great
3 replies
CCConvex Community
•Created by Slewt on 10/15/2024 in #support-community
Is nextjs recommended with convex? or not ideal?
I’m trying to decide what react framework I should use when building on convex.
I’m fairly new to the react world but I’ve built apps with many types of tech stacks over the years.
I know convex works with any react framework. Though it seems like it overlaps with some nextjs functionality and maybe I would be better off using vite + tanstack pieces, etc. I’m building a single page app and don’t need SSR but it seems like nextjs is still popular for most use cases. This is a real b2b SaaS app I’m building so I want a solid framework foundation for a bigger/complex product.
Anyone have any suggestions on this topic? It seems like nextjs isn’t an ideal fit with convex even though it works just fine.
22 replies
CCConvex Community
•Created by Slewt on 10/11/2024 in #support-community
Convex’s use of server vs client caching
I’ve been searching for any blog post or docs that break this topic down more.
I know convex will cache server function queries so all clients that call the same function query will get the cached response. But what about repetitive calls from the client? I’ve seen a little reference that convex does client caching in 1 post but zero other info about it that I can find so far.
I’m trying to decide how to architect the query patterns for some dynamic data heavy pages. Specifically large custom spreadsheets that every column, row, and cell value can be changed (though not frequently) and shared between users, organizations, teams. So striking the right balance of how granular to make the query subscriptions is important. And how this will affect the function call quotas for convex matters even if they are generous.
From what I’ve seen, each server function call counts toward the usage quota whether it’s cached or not.
What about local cache responses? Is that even a thing or do I need to write my own local cache?
There’s guidance around using convex for state, but if it doesn’t local cache and charges for each function call it’s not really valid for state usage.
Appreciate any suggestions around the topic.
8 replies