GeezerVison is showing github.com — [Flight] Wire up async_hooks in Node.js DEV for inspecting Promises by sebmarkbage · Pull Request #27840 · react/react
Conversation
sebmarkbage
commented
Dec 15, 2023
•
edited
Loading
Uh oh!
There was an error while loading. Please reload this page.
This wires up the use of async_hooks in the Node build (as well as the Edge build when a global is available) in DEV mode only. This will be used to track debug info about what suspended during an RSC pass.
Enabled behind a flag for now.
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
dai-shi reacted with eyes emoji
|
Comparing: 493610f...52c924e
Critical size changes
Includes critical production bundles, as well as any change greater than 2%:
Significant size changes
Includes any change greater than 0.2%:
Expand to show
Generated by 🚫 dangerJS against 52c924e
|
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
In the Edge build we currently get this from the global object just like
AsyncLocalStorage. This is unfortunate and something we'd like to move away
from.
This is a DEV only feature.
sebmarkbage
changed the title
[Flight] Wire up async
[Flight] Wire up async_hooks in Node.js DEV for inspecting Promises
Dec 15, 2023
|
|
|
|
|
import {SuspenseException, getSuspendedThenable} from './ReactFlightThenable';
|
|
|
|
|
|
initAsyncDebugInfo();
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The explicit init here is really only due to the module cycle between the implementation and the config since we need createAsyncHook to have been resolved already.
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
|
Diagnostic Channels were evaluated but they're not detailed enough to trace where something was eventually awaited and what ultimately caused what. It just tells you that it happened.
|
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
EdisonVan
pushed a commit
to EdisonVan/react
that referenced
this pull request
Apr 15, 2024
…eact#27840)
This wires up the use of `async_hooks` in the Node build (as well as the
Edge build when a global is available) in DEV mode only. This will be
used to track debug info about what suspended during an RSC pass.
Enabled behind a flag for now.
bigfootjon
pushed a commit
that referenced
this pull request
Apr 18, 2024
…27840)
This wires up the use of `async_hooks` in the Node build (as well as the
Edge build when a global is available) in DEV mode only. This will be
used to track debug info about what suspended during an RSC pass.
Enabled behind a flag for now.
DiffTrain build for commit 8b8d265.
hanzo-dev
pushed a commit
to hanzoai/react
that referenced
this pull request
Sep 9, 2026
…eact#27840)
This wires up the use of `async_hooks` in the Node build (as well as the
Edge build when a global is available) in DEV mode only. This will be
used to track debug info about what suspended during an RSC pass.
Enabled behind a flag for now.
Reviewers
gnoff
gnoff approved these changes
acdlite
Awaiting requested review from acdlite
Uh oh!
There was an error while loading. Please reload this page.
Assignees
No one assigned
Milestone
No milestone
Development
Successfully merging this pull request may close these issues.
Uh oh!
There was an error while loading. Please reload this page.
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.