next.js
0a220665 - [dynamicIO] Do not use `React.unstable_postpone()` (#81652)

Commit
285 days ago
[dynamicIO] Do not use `React.unstable_postpone()` (#81652) dynamicIO does not rely on Postponing for any prerender reason. This is an experimental only API with no clear path to stailization. To make dynamicIO supportable with stable React we should eliminate use of this API. This change replaces the postpone value when aborting the resume of a prerender we want to complete even when it had a postponed state with the already existing BailoutToCSRError error subclass. We already have plumbing in place to ignore this error on the client when hydrating which is exactly what we want to achieve here.
Author
Parents
Loading