Vengeance
Don't understand cache
How come my API is still getting called when it's already been called with other inputs?
Ex:
1. api fetch with 1 as the input
2. api fetch with 0 as the input
I expect if the input gets set to 1 again, the API would not be called because we already fetched the result for that
Am I doing something wrong or need to set something up? I'm on v11
4 replies
tRPC Call To Server
On the mobile version of my app, in NextJS, the build has to be static so I have to use my hosted web version ass the server url, but when it makes requests it says stuff like no query procedure found, whereas in the web version the request works just fine, I think it's because the static version of the app doesn't request with any cookies. How can I solve this?
5 replies
Ignore Errors from batch calls
I have some of my routers throw helpful errors for the client to use in the error message object, but when one of those calls in a batch request, it causes the other calls to fail and never resolves. How do you get around that? I'd rather not add a nullable error field to all my results
7 replies