next.js
929d6fa3 - [Cache Components] Defer Request Data API resolution to another task in dev when it would suspend when prerendering (#82386)

Commit
159 days ago
[Cache Components] Defer Request Data API resolution to another task in dev when it would suspend when prerendering (#82386) Stacked on #82381 When resolving these Request Data APIs in dev we now do so in a new Task. This allows the environment tracking to properly move stuff that was previously in the Prerender environment to the Server environment when a Request Data API is used before them. This also has the nice side effect of causing these functions to appear as IO in the new suspended-by features of React Devtools. In Prod we don't need to do any additional delaying because the all of the features this is designed to interact with are dev only.
Author
Parents
Loading