ottomated / trpc-svelte-query

66 stars 9 forks source link

How to prevent @trpc/server from leaking to client? #16

Closed Serpentarius13 closed 10 months ago

Serpentarius13 commented 10 months ago

When using this cool library with @trpc/server together in one full-stack SvelteKit app, I encountered an issue where it is not possible to use client trpc without using isServer: true option when creating a server. How do I abstract @trpc/server from client so that it doesnt load with bundle? Thanks

ottomated commented 10 months ago

Please post a minimal reproduction

Serpentarius13 commented 10 months ago

Please post a minimal reproduction

Hey, sorry for late reply. Everything works fine now. Thanks for the lib!