next.js
e22dc27d - Add experimental unstable_io() API behind experimental.unstableIO flag (#92521)

Commit
12 days ago
Add experimental unstable_io() API behind experimental.unstableIO flag (#92521) Adds a new export from next/cache that acts as a metasyntactic IO boundary. During prerendering with cache components it returns a hanging promise to prevent execution of code that follows it. In all other contexts it resolves as a fulfilled thenable that React can unwrap synchronously. This is gated behind experimental.unstableIO and not ready for general use.
Author
Parents
Loading