Skip to content

Commit

Permalink
Expose to devtools
Browse files Browse the repository at this point in the history
  • Loading branch information
sebmarkbage committed Oct 1, 2024
1 parent 33aa9c5 commit 60dfd2f
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions packages/react-devtools-shared/src/backend/fiber/renderer.js
Original file line number Diff line number Diff line change
Expand Up @@ -4348,8 +4348,7 @@ export function attach(
const componentInfo = virtualInstance.data;
const key =
typeof componentInfo.key === 'string' ? componentInfo.key : null;
const props = null; // TODO: Track props on ReactComponentInfo;

const props = componentInfo.props == null ? null : componentInfo.props;
const owners: null | Array<SerializedElement> =
getOwnersListFromInstance(virtualInstance);

Expand Down

0 comments on commit 60dfd2f

Please sign in to comment.