You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Using trpc together with react-query in the context of react router is making the procedure output type to infer to any. The issue is visible in TanStack/Router example code.
Check notation of the posts object. It doesn't infer output type from the trcp prodecure:
Aside notes:
I am experiencing the same issue and at first I thought it's my fault, but after a bit of exploring I know it's a common issue. For reference, I have asked for a help with that issue a while ago on trpc repo: trpc/trpc#6314.
Expected behavior
The procedure output type should be inffered from trpc.
Screenshots or Videos
No response
Platform
Browser: Arc
Version: Any
Additional context
No response
The text was updated successfully, but these errors were encountered:
Which project does this relate to?
Router
Describe the bug
Using
trpc
together withreact-query
in the context of react router is making the procedure output type to infer toany
. The issue is visible in TanStack/Router example code.Your Example Website or App
https://tanstack.com/router/latest/docs/framework/react/examples/with-trpc-react-query
Steps to Reproduce the Bug or Issue
dashboard.index.tsx
fileposts
object. It doesn't infer output type from the trcp prodecure:Aside notes:
I am experiencing the same issue and at first I thought it's my fault, but after a bit of exploring I know it's a common issue. For reference, I have asked for a help with that issue a while ago on trpc repo: trpc/trpc#6314.
Expected behavior
The procedure output type should be inffered from
trpc
.Screenshots or Videos
No response
Platform
Additional context
No response
The text was updated successfully, but these errors were encountered: