Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
fix[devtools/inspect]: null check memoized props before trying to cal…
…l hasOwnProperty on it
  • Loading branch information
hoxyq committed Jul 5, 2023
commit 16e60ca71ad6856a9c49c82bd9e629353f7c13ac
2 changes: 1 addition & 1 deletion packages/react-devtools-shared/src/backend/renderer.js
Original file line number Diff line number Diff line change
Expand Up @@ -3280,7 +3280,7 @@ export function attach(
};

if (enableStyleXFeatures) {
if (memoizedProps.hasOwnProperty('xstyle')) {
if (memoizedProps != null && memoizedProps.hasOwnProperty('xstyle')) {
plugins.stylex = getStyleXData(memoizedProps.xstyle);
}
}
Expand Down