Skip to content

Commit 078beb5

Browse files
committed
[Flight] Allow aborting during render
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
1 parent 1e1e5cd commit 078beb5

File tree

3 files changed

+676
-29
lines changed

3 files changed

+676
-29
lines changed

0 commit comments

Comments
 (0)