โ๏ธ 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
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.
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.
Itโs also expected because the fallback will be committed before the suspended siblings are rendered. However, if the rest of the tree is large, you might see fallbacks a lot sooner than in v18, which is what the initial change aimed to address.
0 reposts1 like