Typedef
Typedef
Explore posts from servers
PPrisma
Created by Typedef on 6/5/2024 in #help-and-questions
default value not changing
Nvm its because of the redis cache
4 replies
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
TTCTheo's Typesafe Cult
Created by Typedef on 9/14/2023 in #questions
WordPress Landing + NextJS Dashboard
@dan.mkv do you know how I could do my example? How would I make it the same domain on two different hosts
6 replies
TTCTheo's Typesafe Cult
Created by Typedef on 9/5/2023 in #questions
TRPC's useContext does not invalidate query.
Fixed: Another context was conflicting with TRPC because both uses react-query.
4 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
TTCTheo's Typesafe Cult
Created by Typedef on 9/1/2023 in #questions
TRPC The inferred type of this node exceeds the maximum length the compiler will serialize.
No description
3 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