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

Wrong data returns on data from createServerQuery #57

Open
SashaGoncharov19 opened this issue Sep 6, 2024 · 1 comment
Open

Wrong data returns on data from createServerQuery #57

SashaGoncharov19 opened this issue Sep 6, 2024 · 1 comment

Comments

@SashaGoncharov19
Copy link

SashaGoncharov19 commented Sep 6, 2024

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
Copy link
Owner

vishalbalaji commented Sep 7, 2024

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants