TanStack / query

🤖 Powerful asynchronous state management, server-state utilities and data fetching for the web. TS/JS, React Query, Solid Query, Svelte Query and Vue Query.
https://tanstack.com/query
MIT License
41.42k stars 2.81k forks source link

What about Svelte 5? #6674

Closed frederikhors closed 4 weeks ago

frederikhors commented 7 months ago

After opening https://github.com/TanStack/query/discussions/6673 I thought it was time to consider the imminent arrival of Svelte 5.

All news are beautiful explained here: https://svelte-5-preview.vercel.app/docs/introduction.

How do we plan to do it?

I think we can finally close bug like:

lachlancollins commented 7 months ago

Everything in Query v5 should continue to work, since Svelte 5 is fully backwards compatible. A future Query version (v6?) will migrate from stores to runes.

niemyjski commented 2 months ago

@lachlancollins is there an issue tracking the runes migration. It's been a huge pain working with derived queries with runes. Like a massive pain. It would be great to start a discussion on this. I feel like this issue works for that.

lachlancollins commented 2 months ago

@lachlancollins is there an issue tracking the runes migration. It's been a huge pain working with derived queries with runes. Like a massive pain. It would be great to start a discussion on this. I feel like this issue works for that.

Hi @niemyjski, see this PR: https://github.com/TanStack/query/pull/6981

niemyjski commented 2 months ago

@lachlancollins I replied here wondering if it's the correct approach and what was left. https://github.com/TanStack/query/pull/6981#issuecomment-2121243912

lachlancollins commented 4 weeks ago

Hi @frederikhors , I've merged #6981 into https://github.com/TanStack/query/tree/svelte-5-adapter

It's still not ready for release, but I would appreciate more people giving it a try and contributing!

lachlancollins commented 4 weeks ago

We should probably continue discussion here: https://github.com/TanStack/query/discussions/7413