Skip to content

Commit

Permalink
Inject Parcel Flight Client into DevTools
Browse files Browse the repository at this point in the history
This ensures that owner stacks can be printed for log replaying.
  • Loading branch information
sebmarkbage committed Dec 12, 2024
1 parent 33d5755 commit 135d09d
Showing 1 changed file with 5 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ import {
reportGlobalError,
processBinaryChunk,
close,
injectIntoDevTools,
} from 'react-client/src/ReactFlightClient';

import {
Expand Down Expand Up @@ -177,3 +178,7 @@ export function encodeReply(
}
});
}

if (__DEV__) {
injectIntoDevTools();
}

0 comments on commit 135d09d

Please sign in to comment.