patochem
Explore posts from serversCCConvex Community
•Created by patochem on 11/10/2023 in #support-community
Problems using useQuery inside a Context
Yep, that's what is happening... I don't have anything to do
Looks like magic actually!
Thanks @Michal Srb !
8 replies
CCConvex Community
•Created by patochem on 11/10/2023 in #support-community
Problems using useQuery inside a Context
could you give an quick example of the first option, please?
8 replies
CCConvex Community
•Created by patochem on 11/10/2023 in #support-community
Problems using useQuery inside a Context
Thanks for answering @StoicWanderer
This was my first thought but it doesn't work because you can't use "useQuery" inside useEffect, since it's a hook
React Hook "useQuery" cannot be called inside a callback. React Hooks must be called in a React function component or a custom React Hook function.eslintreact-hooks/rules-of-hooks
8 replies
CCConvex Community
•Created by patochem on 11/8/2023 in #support-community
How do I get a jwtToken from outside React
Thanks a lot again for the support!
I'll make sure to publish my app in #show-and-tell when it's done and spread the word about Convex!
25 replies
CCConvex Community
•Created by patochem on 11/8/2023 in #support-community
How do I get a jwtToken from outside React
oh, alright.. So I guess I'm safe since I'm building this project on my own👍
25 replies
CCConvex Community
•Created by patochem on 11/8/2023 in #support-community
How do I get a jwtToken from outside React
Great!!
What do you mean by "early projects"?
25 replies
CCConvex Community
•Created by patochem on 11/8/2023 in #support-community
How do I get a jwtToken from outside React
yep, that's what I'll do!
Thanks a million!
25 replies
CCConvex Community
•Created by patochem on 11/8/2023 in #support-community
How do I get a jwtToken from outside React
That's absolutely awesome since those rows will never change!
25 replies
CCConvex Community
•Created by patochem on 11/8/2023 in #support-community
How do I get a jwtToken from outside React
25 replies
CCConvex Community
•Created by patochem on 11/8/2023 in #support-community
How do I get a jwtToken from outside React
--------------------------------------
For example, in my current project, I have a 'modules' table of hundreds of rows. Each 'module' can be made of another module or raw material.
So I need another table called "requirements" that maps each module with its components.
So each time I want to display a list of modules with all the raw materials involved in its construction, I have to recursively call on those 2 tables until I parse the whole tree of components.
If I rely exclusively on cloud functions, this computational and bandwidth cost could escalate pretty fast, because of the recursive nature of app
So my guess is that I should find some kind of "caching" mechanism for that.
25 replies
CCConvex Community
•Created by patochem on 11/8/2023 in #support-community
How do I get a jwtToken from outside React
I'm still prototyping so I'm not sure it's the best way... As soon as I take a decision, I'll let you know.
As a side note and as a long time user of Firestore, I know how quick you can reach the monthly limits for functions call and/or bandwidth when you work with large databases.
That said, Convex prices look way cheaper than firestore and this shouldn't be an issue
25 replies
CCConvex Community
•Created by patochem on 11/8/2023 in #support-community
How do I get a jwtToken from outside React
Also, @ballingt Mentioned that you might have an example on how to combine Convex and Redux. That would be of great help too!
25 replies
CCConvex Community
•Created by patochem on 11/8/2023 in #support-community
How do I get a jwtToken from outside React
ok. I'll check it out. Thanks a lot
25 replies
CCConvex Community
•Created by patochem on 11/8/2023 in #support-community
How do I get a jwtToken from outside React
Any update on this one, please?
25 replies
CCConvex Community
•Created by patochem on 11/8/2023 in #support-community
How do I get a jwtToken from outside React
As for the state management, I am not sure yet. I was considering zustand (https://github.com/pmndrs/zustand)
But if you have an example with another one, I'm interested in checking it out!
But if you have an example with another one, I'm interested in checking it out!
25 replies
CCConvex Community
•Created by patochem on 11/8/2023 in #support-community
How do I get a jwtToken from outside React
Auth Provider: I'm using Clerk, through a Provider, as you say.
This is the code:
25 replies
CCConvex Community
•Created by patochem on 11/8/2023 in #general
I'm in a similar situation as @niels
yep
14 replies
CCConvex Community
•Created by patochem on 11/8/2023 in #general
I'm in a similar situation as @niels
In your case, on server-side, I guess having something like a "Service Account" or bot user would be great.. but I don't know if it's possible
14 replies
CCConvex Community
•Created by patochem on 11/8/2023 in #general
I'm in a similar situation as @niels
On the "react" side, I'm using Clerk, and having followed the steps in the doc, it works well.
But now I'm not sure how to proceed on how to get a Token outside of react
14 replies
CCConvex Community
•Created by patochem on 11/8/2023 in #general
I'm in a similar situation as @niels
Theoretically yes. Although I'm not sure about Authentication
14 replies