NazCodeland
Explore posts from serversmerging other routers to appRouter
Hey everyone, I am using the https://icflorescu.github.io/trpc-sveltekit package in my SvelteKit project. My question is not related to that package (at least I don't think it is) I figured I mention it since it might be related and I just don't know...
I am wondering if I have this code,
and say I also have
am I able to merge the
userRouter
onto the appRouter
directly within the /router/user.ts
file?7 replies
should we use tRPC for handling form submittion or not?
Hey everyone, I've started using tRPC for my API endpoints and my project is based in Svelte/SvelteKit and in that eco system we have this https://superforms.rocks/ library for handling form data. I am unsure what to choose here
6 replies
if I export 'appRouter' instead of 'router' I get error
hey everyone, I have this exact setup https://icflorescu.github.io/trpc-sveltekit/getting-started
I created all the files inside of
/src/trpc/
besides the hooks.server.ts
which is inside /src/trpc/
only difference is that inside the file router.ts
I've changed the variable name router
in this line: to and then at the bottom changed to
and changed the file /src/trpc/router.ts
to /src/trpc/appRouter.ts
and inside of /src/trpc/client.ts
changed to
inside of /src/hooks.server.ts
I've changed the import to and changed this line
to 4 replies