Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

tech debt: createCaller() deprecated, needs replaced #174

Closed
zkoppert opened this issue Jun 12, 2024 · 0 comments · Fixed by #189
Closed

tech debt: createCaller() deprecated, needs replaced #174

zkoppert opened this issue Jun 12, 2024 · 0 comments · Fixed by #189
Labels
bug Something isn't working

Comments

@zkoppert
Copy link
Contributor

Describe the bug

'createCaller' is deprecated.ts(6385)
router.d.ts(80, 8): The declaration was marked as deprecated here.

(property) Router<RouterDef<RootConfig<{ ctx: { session: Session | null; }; meta: object; errorShape: DefaultErrorShape; transformer: typeof SuperJSON; }>, { createMirror: BuildProcedure<...>; listMirrors: BuildProcedure<...>; editMirror: BuildProcedure<...>; deleteMirror: BuildProcedure<...>; }, { ...; }>>.createCaller: (ctx: {
    session: Session | null;
}) => DecoratedProcedureRecord<...> & {
    query: inferHandlerFn<...>;
    mutation: inferHandlerFn<...>;
    subscription: inferHandlerFn<...>;
}

@deprecated — use t.createCallerFactory(router) instead

@see — https://trpc.io/docs/server/server-side-calls

To Reproduce

nothing needed to reproduce

Expected behavior

function calls are not deprecated

Screenshots

No response

Additional context

No response

@zkoppert zkoppert added the bug Something isn't working label Jun 12, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant