tRPCttRPC
Powered by
NickN
tRPC•3y ago•
12 replies
Nick

TRPCContextState not found in v10

In our v9 app, we used TRPCContextState from internals to type out TRPC utils, importing it like
import { TRPCContextState } from '@trpc/react-query/dist/declarations/src/internals/context';
import { TRPCContextState } from '@trpc/react-query/dist/declarations/src/internals/context';
and using it in types like
trpcUtils: TRPCContextState<AppRouter, any>;
trpcUtils: TRPCContextState<AppRouter, any>;


Is there a quick alternative to this? Can't find it in the the latest trpc10 code packages.
tRPCJoin
Move Fast & Break Nothing. End-to-end typesafe APIs made easy.
5,015Members
Resources
Recent Announcements

Similar Threads

Was this page helpful?

Similar Threads

Router/Middleware Chaining in V10
_braden__braden / ❓-help
3y ago
V10. How to infer types on V10?
lukasLlukas / ❓-help
4y ago