Typedef
Typedef
TtRPC
Created by Typedef on 8/10/2023 in #❓-help
useContext not Invalidating
Yep check if you have another library using tanstack react query
15 replies
TtRPC
Created by melodyclue on 7/20/2023 in #❓-help
Sometimes invalidate not work...
I had 2 queryClient providers thats why mine wasnt working 👍🏽
22 replies
TtRPC
Created by WO on 8/4/2023 in #❓-help
How to refetch data for a query when a mutation is performed in a different component?
Yep this works but I really dont want to refetch all queries in the cache. Wait so your useContext doesnt work aswell?
10 replies
TtRPC
Created by Typedef on 8/10/2023 in #❓-help
useContext not Invalidating
Okay weird, I tried doing an override:
overrides: {
useMutation: {
async onSuccess(opts) {
await opts.originalFn();
await opts.queryClient.invalidateQueries();
},
},
},
overrides: {
useMutation: {
async onSuccess(opts) {
await opts.originalFn();
await opts.queryClient.invalidateQueries();
},
},
},
it invalidated all the cached queries. Still lost why it wont invalidte with const utils = trpc.useContext();
15 replies
TtRPC
Created by WO on 8/4/2023 in #❓-help
How to refetch data for a query when a mutation is performed in a different component?
@icy.icicle Hi, did you find a solution? having the same issue.
10 replies
TtRPC
Created by Typedef on 8/31/2023 in #❓-help
The inferred type of this node exceeds the maximum length the compiler will serialize.
No description
10 replies
TtRPC
Created by Typedef on 8/31/2023 in #❓-help
The inferred type of this node exceeds the maximum length the compiler will serialize.
@sudoer_with_an_opinion The error goes away when removing some of the routers, maybe its just too many as the error stated?
10 replies
TtRPC
Created by Typedef on 8/31/2023 in #❓-help
The inferred type of this node exceeds the maximum length the compiler will serialize.
No description
10 replies
TtRPC
Created by melodyclue on 7/20/2023 in #❓-help
Sometimes invalidate not work...
Ahh, in my case onSuccess works all the time, but the utils...invalidate() doesnt.
22 replies
TtRPC
Created by Typedef on 8/10/2023 in #❓-help
useContext not Invalidating
im using nextjs, my app is wrapped with withTrpc()
15 replies
TtRPC
Created by melodyclue on 7/20/2023 in #❓-help
Sometimes invalidate not work...
are you still invalidating through useContext? but just after the async
22 replies
TtRPC
Created by Typedef on 8/10/2023 in #❓-help
useContext not Invalidating
Any ideas on why it doesnt work?
15 replies
TtRPC
Created by Typedef on 8/10/2023 in #❓-help
useContext not Invalidating
Hmm, I really dont want to invalidate eveything on any onSuccess mutations
15 replies
TtRPC
Created by melodyclue on 7/20/2023 in #❓-help
Sometimes invalidate not work...
Im having this problem aswell, @melodyclue have you found a solution?
22 replies
TtRPC
Created by Typedef on 8/10/2023 in #❓-help
useContext not Invalidating
Still not working ..
15 replies
TtRPC
Created by Typedef on 8/10/2023 in #❓-help
useContext not Invalidating
Any ideas @alexkatt
15 replies
TtRPC
Created by Typedef on 8/10/2023 in #❓-help
useContext not Invalidating
but if I do user.refetch() it works I can confirm that it calls onSuccess after but not sending a query at all
15 replies
TtRPC
Created by Typedef on 8/10/2023 in #❓-help
useContext not Invalidating
Still doesnt work hmm
15 replies
TtRPC
Created by Typedef on 3/21/2023 in #❓-help
Set custom header for fetchRequestHandler
Fixed!
23 replies
TtRPC
Created by Typedef on 3/21/2023 in #❓-help
Set custom header for fetchRequestHandler
23 replies