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 d5c0235 commit 19a5c6f
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 19a5c6f

Please sign in to comment.