T
TanStack6mo ago
like-gold

Svelte 5

Hello, is tanstack query released/compatible with Sevelte 5?
12 Replies
frail-apricot
frail-apricot6mo ago
Not yet - you can follow along here: https://github.com/TanStack/query/discussions/7413
GitHub
Svelte 5 Support · TanStack query · Discussion #7413
I'm wondering what is left to support svelte 5 and if the current approach is good. A lot of Svelte 5 apps are blocked so just trying to get a consensus of where community can help. #6981
like-gold
like-goldOP6mo ago
oh cool. im looking to get into svelte (coming from react). Is this the norm that i should expect with libs, they get released for react first, then the rest? I think Svelte 5 was released in oct of last year. Or is it just because Svelte 5 was a HUGE change of things. Not trying to be rude or anything, just trying to understand. thanks
frail-apricot
frail-apricot5mo ago
Not the norm we want to establish, so we're trialling some changes to how we release breaking majors! Hopefully should mean that users don't have to wait months for new framework changes in the future.
like-gold
like-goldOP5mo ago
oh thats good. would you recommend then not using svelte-query until this is released to avoid porting everything to the new changes? im starting a new project
frail-apricot
frail-apricot5mo ago
If this is a hobby project, you can try out the preview build of the svelte 5 adapter: https://github.com/TanStack/query/discussions/7413#discussioncomment-10154514
GitHub
Svelte 5 Support · TanStack query · Discussion #7413
I'm wondering what is left to support svelte 5 and if the current approach is good. A lot of Svelte 5 apps are blocked so just trying to get a consensus of where community can help. #6981
like-gold
like-goldOP5mo ago
cool thanks! is it close to release?
frail-apricot
frail-apricot5mo ago
I'd say yes - @Elliott Johnson is working on some final tweaks, but I don't think the API will change dramatically between the current preview and the stable release. Follow progress here: https://github.com/TanStack/query/pull/8852
GitHub
feat: Svelte 5 API proposal by elliott-with-the-longest-name-on-git...
This is a proposal built on the excellent work of @lachlancollins. I've had a few conversations with Rich and the Svelte team about what the best user API is for libraries like this, and we...
ambitious-aqua
ambitious-aqua5mo ago
(Note: the description is out of date, please don’t read it right now, but yes — I just finished updating all of the examples and am bashing out tests now)
like-gold
like-goldOP5mo ago
awesome! great work, thank you
optimistic-gold
optimistic-gold5mo ago
Damn : ((( Bro literally has the longest name on github and created a long PR to support a long waited request for a long list of requirements in order to make the long waited request from the long public list of users that wanted it supported. Just very crazy. Jokes aside: Is there a way to help? At least writing test cases? @Elliott Johnson
ambitious-aqua
ambitious-aqua5mo ago
@!protour check the most recent comments on the PR — you could definitely pick up some test cases if you wanted to! It’s pretty boring work 😂
stormy-gold
stormy-gold4mo ago
I saw that this PR was merged into svelte-5-adapter branch: https://github.com/TanStack/query/pull/6981 I would like to know what is the current state of the port to SvelteKit 5 And I also would love to contribute Is this the current current state of the SvelteKit 5 port? If so, what is missing? https://github.com/TanStack/query/pull/8852

Did you find this page helpful?