giray
giray
CCConvex Community
Created by djbalin on 7/26/2024 in #support-community
Convex Auth: Error types for signUp/signIn
No description
3 replies
CCConvex Community
Created by ibrahimyaacob on 6/29/2024 in #support-community
How to get other user's clerk data?
I have implemented this in a couple of apps. It is not straightforward, requires some hacks which all of them has some disadvantages. 1. Use clerk webhook to sync clerk users to your Convex DB. There is a qood post out there on Convex. 2. Use that table to fetch other users 3. You can disable a user to do an action prior to having user's information on the Convex. However, sometimes I do not do that. Instead I denormalize user data to my tables (I use userId amd username) to save to my tables and if the user changes its username, for example, in the webhook I also update the other tables that has denormalized username field. 4. In theory, you can always use an action to fetch clerk/backend to fetch the users but it is not scalable. So I do not suggest that.
3 replies
CCConvex Community
Created by erquhart on 7/3/2023 in #support-community
Disable/enable queries: SOLVED (use "skip")
Hey, is there any development on this?
8 replies
CCConvex Community
Created by giray on 5/24/2024 in #support-community
Chat App Bandwidth Problem
I am also very inclined to do this as well , I am just not sure, because I do not understand the bandwidth consumtion very clearly.
export function App() {
const { results, status, loadMore } = usePaginatedQuery(
api.chat.getAllForGame,
{gameId},
{ initialNumItems: 1 },
);

useEffect(() => {
if(status.canLoadMore) loadMore()
}, [status])

return (
// display chat
);
}
export function App() {
const { results, status, loadMore } = usePaginatedQuery(
api.chat.getAllForGame,
{gameId},
{ initialNumItems: 1 },
);

useEffect(() => {
if(status.canLoadMore) loadMore()
}, [status])

return (
// display chat
);
}
5 replies
CCConvex Community
Created by giray on 5/24/2024 in #support-community
Chat App Bandwidth Problem
No description
5 replies
CCConvex Community
Created by giray on 4/25/2024 in #support-community
Question about schema design for more frequently changing data
Yes, it would work. Thank you for the suggestion. I need to update the game logic a little bit but definitely it will be more performant. Thank you. I am still curous though about my last question.
3 replies
CCConvex Community
Created by giray on 4/24/2024 in #support-community
Global Error Catcher
Thanks
16 replies