vishalbalaji / trpc-svelte-query-adapter

A simple adapter to use `@tanstack/svelte-query` with trpc, similar to `@trpc/react-query`.
73 stars 6 forks source link

Wrong data returns on data from createServerQuery #57

Open SashaGoncharov19 opened 2 months ago

SashaGoncharov19 commented 2 months ago

I'm using bun with sveltekit (svelte 5) and trpc-svelte. I also want to include this adapter to use tanstack query for svelte.

Main problem is when I'm trying to access data image I'm actually getting this image So data is object which contains json value and this value contains my returned data.

I have uploaded my code so you can familiarise yourself with it:: https://github.com/SashaGoncharov19/database-manager

quick links: +page.ts: https://github.com/SashaGoncharov19/database-manager/blob/master/src/routes/%2Bpage.ts +page.svelte: https://github.com/SashaGoncharov19/database-manager/blob/master/src/routes/%2Bpage.svelte near we have layout files which includes client provider from tanstack

trpc folder: https://github.com/SashaGoncharov19/database-manager/tree/master/src/lib/trpc

vishalbalaji commented 2 months ago

Hey @SashaGoncharov19, this library is not compatible with Svelte 5 and runes yet. It's on the roadmap, but I have been a bit busy lately and not been able to add support for that. I'll try to get it done sometime this month if I am able to find some time, but until then, I'm happy to accept any PRs if anybody wants to open one.