⚛️ I updated my reproduction from you-know-when to react 19.0.0-rc.1 and it works great 🚀 stackblitz.com/edit/tanstac... It’s not quite the same as in v18, but definitely the perfect tradeoff:
Post
stackblitz.comsuspense-query-react-19 (forked) - StackBlitzRun official live example code for Query Simple, created by Tanstack on StackBlitz
In 19-rc.1, we get: - 🚀 start fetch 1 - 🌀 render fallback - 🚀 start fetch 2 This combines the best of both worlds thanks to the new pre-warming feature: - ⚡the fallback renders faster - 🙌 we don’t have to wait for fetch 1 to finish before fetch 2 starts.
react.devReact 19 RC Upgrade Guide – ReactThe library for web and native user interfaces
You can read more about it here: react.dev/blog/2024/04... In my simple example, fetch 2 starts a bit later than in v18 (10-12ms usually), but that’s totally okay and largely irrelevant when async tasks are involved.
react.devReact 19 RC Upgrade Guide – ReactThe library for web and native user interfaces
0 reposts2 likes