WO
Explore posts from serversTTCTheo's Typesafe Cult
•Created by WO on 8/4/2023 in #questions
How to refetch data for a query when a mutation is performed in a different component?
Tried all of those and no luck. Very strange. Think ill just have to live with it not working
13 replies
TTCTheo's Typesafe Cult
•Created by WO on 8/4/2023 in #questions
How to refetch data for a query when a mutation is performed in a different component?
Could it be some conflict with the
cacheTime
field in the query?13 replies
TTCTheo's Typesafe Cult
•Created by WO on 8/4/2023 in #questions
How to refetch data for a query when a mutation is performed in a different component?
Just tried that but doesnt seem to be working. Not seeing anything in the console indicating that its refetching the new status either
13 replies
TTCTheo's Typesafe Cult
•Created by WO on 8/4/2023 in #questions
How to refetch data for a query when a mutation is performed in a different component?
Gotcha, thanks thats good to know.
I updated my code to use the useContext from tRPC but the I'm still not getting the fresh data on the user side.
Is this the correct setup? I also removed the query key from the query on the user side
13 replies
TTCTheo's Typesafe Cult
•Created by WO on 8/4/2023 in #questions
How to refetch data for a query when a mutation is performed in a different component?
I think im doing something wrong with the queryKey field because Im not seeing any intelisense for it. In the docs its not very clear how to set the queryKey
13 replies
TTCTheo's Typesafe Cult
•Created by WO on 8/4/2023 in #questions
How to refetch data for a query when a mutation is performed in a different component?
Gotcha here's the code
Component A (checking request status on user side)
Component B (declining the user request on admin side)
13 replies
TTCTheo's Typesafe Cult
•Created by WO on 6/27/2023 in #questions
How to allow 3rd party apps to send POST requests to your API
the vercel deployment url
43 replies
TTCTheo's Typesafe Cult
•Created by WO on 6/27/2023 in #questions
How to allow 3rd party apps to send POST requests to your API
Yea there is something going wrong between the 3rd party and Vercel I think because the 3rd party works fine with ngrok
43 replies
TTCTheo's Typesafe Cult
•Created by WO on 6/27/2023 in #questions
How to allow 3rd party apps to send POST requests to your API
Im getting a 200 from postman
43 replies
TTCTheo's Typesafe Cult
•Created by WO on 6/27/2023 in #questions
How to allow 3rd party apps to send POST requests to your API
Im not familiar with that but I can try it now
43 replies
TTCTheo's Typesafe Cult
•Created by WO on 6/27/2023 in #questions
How to allow 3rd party apps to send POST requests to your API
There isnt much of a stack trace because on the vercel logs it doesnt even show that my endpoint is being hit even though i put in the base url that it generated
43 replies
TTCTheo's Typesafe Cult
•Created by WO on 6/27/2023 in #questions
How to allow 3rd party apps to send POST requests to your API
Gotcha. Also something to note is im doing this on a Vercel preview deployment not sure if that matters
43 replies
TTCTheo's Typesafe Cult
•Created by WO on 6/27/2023 in #questions
How to allow 3rd party apps to send POST requests to your API
Yea thats how I have it setup
43 replies
TTCTheo's Typesafe Cult
•Created by WO on 6/27/2023 in #questions
How to allow 3rd party apps to send POST requests to your API
Yea thats right.
43 replies
TTCTheo's Typesafe Cult
•Created by WO on 6/27/2023 in #questions
How to allow 3rd party apps to send POST requests to your API
pages
43 replies
TTCTheo's Typesafe Cult
•Created by WO on 6/27/2023 in #questions
How to allow 3rd party apps to send POST requests to your API
The 3rd party app asks for a base url and then it adds on some extra stuff to the url to make it unique.
ex)
I give the 3rd party app https://example.com/api/exampleRoute
The 3rd party app tacks on /[platform]/[leagueId] to it to make it unique so the resulting url is https://example.com/api/exampleRoute/[platform]/[leagueId]
43 replies
TTCTheo's Typesafe Cult
•Created by WO on 6/27/2023 in #questions
How to allow 3rd party apps to send POST requests to your API
Here is an example of the API endpoint
43 replies
TTCTheo's Typesafe Cult
•Created by WO on 6/27/2023 in #questions
How to allow 3rd party apps to send POST requests to your API
43 replies
TTCTheo's Typesafe Cult
•Created by SnehPr on 5/22/2023 in #questions
Can somebody help recommend how to use 'npx prisma db push'.
It looks like it’s trying to find your prisma.schema file but can’t find it
7 replies
TTCTheo's Typesafe Cult
•Created by SnehPr on 5/22/2023 in #questions
Can somebody help recommend how to use 'npx prisma db push'.
What does your project directory look like? Do you have a prisma folder in the root and a schema.prisma file in that folder?
7 replies