Jonathan
Explore posts from serversTRPC completely broke
I have a project I haven't touched in only about a week, it was working and now every request over TRPC is broke. I have tried everything I can think of and I get responses like the attachment
Here is part of my package.json
Everything related to api requests throw an error, but if it is on the server the db is running fine and such. This was an app that was created with the T3 Stack. I am out of ideas, anywhere I might should look?
5 replies
T3 Stack TRPC used in Server Actions
Is there issues using the server calls of TRPC in a nextjs server action? I am seeing weird issues when running it in production that don't happen when running it local. I am trying to narrow it down but looking for a high level of "this shouldn't be an issue", or this could be an issue.
I think it may be related to my user context depending on cookies, the more I have looked everything that is not in server actions seems to work but server actions seem to be flakey in production.
2 replies
useQuery never returning or hitting API
I have something off in my configuration, i copied most of the files from the
❯ npm create t3-app@latest
example app to add to an exisitng app. I am trying to call the simple post.hello
and i tis working on the server. but when I call it on the client side like:
It never hits the api or gets out of the loading state, what am I missing?2 replies
Type 'QueryClient' is missing the following properties from type 'QueryClient': queryCache, mutation
I am trying to setup a new project and doing my first client side query and getting this error:
This is my react.tsx
it is complaining at :
And this is my root layout:
What am I missing? The server side piece is working when querying from next.
6 replies
Specify invalid queries from the server?
I have a TRPC app that I am writing and there are times I would like to invalidate queries on the client from a mutation on the server.
I am not talking web sockets or anything like that, but just a standard way to invalidate multiple queries from the server just as part of the return from a mutation
Is that possible?
2 replies