react/packages/react-server
Josh Story c4b433f8cb
[Flight] Allow aborting during render (#29764)
Stacked on #29491

Previously if you aborted during a render the currently rendering task
would itself be aborted which will cause the entire model to be replaced
by the aborted error rather than just the slot currently being rendered.

This change updates the abort logic to mark currently rendering tasks as
aborted but allowing the current render to emit a partially serialized
model with an error reference in place of the current model.

The intent is to support aborting from rendering synchronously, in
microtasks (after an await or in a .then) and in lazy initializers. We
don't specifically support aborting from things like proxies that might
be triggered during serialization of props
2024-06-06 14:41:27 -07:00
..
npm Don't minify symbols in production builds (#28881) 2024-04-20 11:23:46 -04:00
src [Flight] Allow aborting during render (#29764) 2024-06-06 14:41:27 -07:00
flight.js [Codemod] Update copyright header to Meta (#25315) 2022-10-18 11:19:24 -04:00
index.js [Codemod] Update copyright header to Meta (#25315) 2022-10-18 11:19:24 -04:00
package.json Remove loose-envify dep and browserify configs (#28480) 2024-03-01 20:49:51 +00:00
README.md Add Experimental Flight Infrastructure (#16398) 2019-10-29 14:45:47 -07:00

react-server

This is an experimental package for creating custom React streaming server renderers.

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.