Follow up to #25084. Implements experimental_use(promise) API in the Server Components runtime (Flight). The implementation is much simpler than in Fiber because there is no state. Even the "state" added in this PR — to track the result of each promise across attempts — is reset as soon as a component successfully renders without suspending. There are also fewer caveats around neglecting to cache a promise because the state of the promises is preserved even if we switch to a different task. Server Components is the primary runtime where this API is intended to be used. The last runtime where we need to implement this is the server renderer (Fizz). |
||
|---|---|---|
| .. | ||
| esm | ||
| npm | ||
| src | ||
| README.md | ||
| index.js | ||
| node-register.js | ||
| package.json | ||
| plugin.js | ||
| writer.browser.server.js | ||
| writer.js | ||
| writer.node.server.js | ||
README.md
react-server-dom-webpack
Experimental React Flight bindings for DOM using Webpack.
Use it at your own risk.