โ๏ธ 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
0 reposts5 likes
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