abldxtr001
CCConvex Community
•Created by abldxtr001 on 1/3/2025 in #support-community
implement optimistic updates for a paginated query
Yes, initially, I implemented a paginated query for loading more, but I faced issues with optimistic updates. So, I switched to a normal query that takes two arguments, take and limit, which made implementing optimistic updates easier. Regarding your suggestion, could you provide an example code? For instance, handling the case of sending multiple messages in a short period.
9 replies
CCConvex Community
•Created by abldxtr001 on 1/3/2025 in #support-community
Convex Helpers error
Thank you, it worked!
6 replies
CCConvex Community
•Created by abldxtr001 on 1/3/2025 in #support-community
implement optimistic updates for a paginated query
A chatroom where you want to show a loading indicator for a new message being sent to the server, implement a load more feature, and other functionalities.
9 replies
CCConvex Community
•Created by abldxtr001 on 1/3/2025 in #support-community
implement optimistic updates for a paginated query
In the end, it turns out that you cannot add anything to a paginated query; you can only modify the existing data, and that's it.😕
9 replies
CCConvex Community
•Created by abldxtr001 on 1/3/2025 in #support-community
Convex Helpers error
I am using the same approach as described in the documentation.
<ConvexAuthNextjsServerProvider>
<html lang="en" suppressHydrationWarning>
<body className="">
<ConvexClientProvider>
<GlobalProvider>
<ConvexQueryCacheProvider>
{children}
</ConvexQueryCacheProvider>
</GlobalProvider>
</ConvexClientProvider>
</body>
</html>
</ConvexAuthNextjsServerProvider>
6 replies