SebasPtsch
SebasPtsch
TtRPC
Created by Jay_Ohhh on 5/6/2024 in #❓-help
Can't access mutate utils by createTRPCQueryUtils
Can you please provide a minimal reproducible example ?
9 replies
TtRPC
Created by Jay_Ohhh on 5/6/2024 in #❓-help
Can't access mutate utils by createTRPCQueryUtils
I don't know any reason why this wouldn't work as createTRPCQueryUtils uses all the same internals as the react query integration, are all your types succeeding?
9 replies
TtRPC
Created by Kimblis on 2/25/2024 in #❓-help
Sentry integration
You could make your own server side error reporter
5 replies
TtRPC
Created by Chen on 1/17/2024 in #❓-help
Can you ensureData without the useUtils hook?
Yes
5 replies
TtRPC
Created by Chen on 1/17/2024 in #❓-help
Can you ensureData without the useUtils hook?
I had the same problem so in v11 there's createQueryUtils which allows you to do it without the hook
5 replies
TtRPC
Created by Simon on 1/16/2024 in #❓-help
v10, passing useQuery options, queryKey mandatory?
if you've installed react query v5 with trpc v10 this error will ocur. Make sure that you have v4 of tanstack query installed
5 replies
TtRPC
Created by charliephan on 1/9/2024 in #❓-help
Getting type error in v11 when trying to instantiate createTRPCQueryUtils
You need to call trpc.createClient and then put the result into the function
2 replies
TtRPC
Created by AymaneCh on 12/17/2023 in #❓-help
❌ Failed to collect page data for api trpc [trpc] ❌
There should be another error further up in the logs. This one doesn't really tell anyone anything
10 replies
TtRPC
Created by AymaneCh on 12/17/2023 in #❓-help
❌ Failed to collect page data for api trpc [trpc] ❌
And are there any more logs?
10 replies
TtRPC
Created by AymaneCh on 12/17/2023 in #❓-help
❌ Failed to collect page data for api trpc [trpc] ❌
Is your file name correct?
10 replies
TtRPC
Created by SebasPtsch on 12/23/2023 in #❓-help
Get Query Key on Server
but because my frontend state is so closely tied to my backend state through trpc-react I'm trying to keep it that way, extremely type safe
13 replies
TtRPC
Created by SebasPtsch on 12/23/2023 in #❓-help
Get Query Key on Server
The react work around does work at the moment. I'll do some more testing
13 replies
TtRPC
Created by SebasPtsch on 12/23/2023 in #❓-help
Get Query Key on Server
Yeah, the primary issue is that I don't actually want to handle partial updates (with data) as you can't really protect trpc websocket connections with session. I could theoretically publish events per type e.g. invalidateEvent, eventId
13 replies
TtRPC
Created by SebasPtsch on 12/23/2023 in #❓-help
Get Query Key on Server
13 replies
TtRPC
Created by SebasPtsch on 12/23/2023 in #❓-help
Get Query Key on Server
13 replies
TtRPC
Created by SebasPtsch on 12/23/2023 in #❓-help
Get Query Key on Server
It looks like I may be able to derive it using callers?
13 replies
TtRPC
Created by SebasPtsch on 12/22/2023 in #❓-help
Canary useUtils and createTRPCQueryUtils type not callable
Figured this out, was to do with me exporting the server types and importing them on the client. Added a path override similar to what is done in the trpc project to just grab the AppRouter type from the typescript files rather than the generated declaration.
11 replies
TtRPC
Created by SebasPtsch on 12/22/2023 in #❓-help
Canary useUtils and createTRPCQueryUtils type not callable
haha
11 replies
TtRPC
Created by SebasPtsch on 12/22/2023 in #❓-help
Canary useUtils and createTRPCQueryUtils type not callable
thanks, I'll take a look at my deps
11 replies
TtRPC
Created by SebasPtsch on 12/22/2023 in #❓-help
Canary useUtils and createTRPCQueryUtils type not callable
I am indeed 🙂
11 replies