react/packages/react-client
Sebastian Markbåge e6dc25daea
[Flight] Always defer Promise values if they're not already resolved (#33742)
If we have the ability to lazy load Promise values, i.e. if we have a
debug channel, then we should always use it for Promises that aren't
already resolved and instrumented.

There's little downside to this since they're async anyway.

This also lets us avoid adding `.then()` listeners too early. E.g. if
adding the listener would have side-effect. This avoids covering up
"unhandled rejection" errors. Since if we listen to a promise eagerly,
including reject listeners, we'd have marked that Promise's rejection as
handled where as maybe it wouldn't have been otherwise.

In this mode we can also indefinitely wait for the Promise to resolve
instead of just waiting a microtask for it to resolve.
2025-07-09 09:08:27 -04:00
..
npm Don't minify symbols in production builds (#28881) 2024-04-20 11:23:46 -04:00
src [Flight] Always defer Promise values if they're not already resolved (#33742) 2025-07-09 09:08:27 -04:00
flight.js Remove Flight Relay DOM/Native (#26828) 2023-05-17 20:33:25 -04:00
package.json Remove loose-envify dep and browserify configs (#28480) 2024-03-01 20:49:51 +00:00
README.md Add Relay Flight Build (#18242) 2020-03-07 11:23:30 -08:00

react-client

This is an experimental package for consuming custom React streaming models.

Its API is not as stable as that of React, React Native, or React DOM, and does not follow the common versioning scheme.

Use it at your own risk.