Skip to content

Commit

Permalink
Wire up debugInfo from elements/arrays/lazy/thenables to fibers
Browse files Browse the repository at this point in the history
Merge any debug info we got from intermediate objects until we create or
update a fiber that can hold it.
  • Loading branch information
sebmarkbage committed Feb 12, 2024
1 parent 2370754 commit 83d3c62
Show file tree
Hide file tree
Showing 5 changed files with 200 additions and 24 deletions.
3 changes: 1 addition & 2 deletions packages/react-client/src/ReactFlightClient.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@ import type {
ReactDebugInfo,
ReactComponentInfo,
ReactAsyncInfo,
ReactConsoleInfo,
} from 'shared/ReactTypes';
import type {LazyComponent} from 'react/src/ReactLazy';

Expand Down Expand Up @@ -1017,7 +1016,7 @@ function resolveHint<Code: HintCode>(
function resolveDebugInfo(
response: Response,
id: number,
debugInfo: ReactComponentInfo | ReactAsyncInfo | ReactConsoleInfo,
debugInfo: ReactComponentInfo | ReactAsyncInfo,
): void {
if (!__DEV__) {
// These errors should never make it into a build so we don't need to encode them in codes.json
Expand Down
Loading

0 comments on commit 83d3c62

Please sign in to comment.