Svelte Query SSR doesn't work with ORPC
I try tanstack query svelte with ORPC. The SSR Example in the repo works but the SSR does not work when I use with ORPC. When I console log the
query.isLoading
, it log true
on the server but it render the UI without waiting the prefetch query, I guess. I also await the prefetch query and also use the fetch
from svelte as well. Did anyone got that issue?
1 Reply
equal-aquaOP•2d ago
For someone who have the same problem as me, there is the same problem discuss about this in ORPC channel.
https://discord.com/channels/1308966753044398161/1402461990399770695
And with the example repo https://github.com/CoopTRUE/orpc-svelte-query-ssr
GitHub
GitHub - CoopTRUE/orpc-svelte-query-ssr: Template project for a Sve...
Template project for a SvelteKit project built with oRPC and SvelteQuery (Tanstack Query) with NO double requests. - CoopTRUE/orpc-svelte-query-ssr