Skip to content

Commit

Permalink
fix[devtools/inspect]: null check memoized props before trying to cal…
Browse files Browse the repository at this point in the history
…l hasOwnProperty (#27057)

Simple check to avoid `TypeError`, quite rare case, but still.

DiffTrain build for commit 546fe46.
  • Loading branch information
hoxyq committed Jul 13, 2023
1 parent 8b06d52 commit 9ecc0a1
Show file tree
Hide file tree
Showing 7 changed files with 9 additions and 9 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -23982,7 +23982,7 @@ function createFiberRoot(
return root;
}

var ReactVersion = "18.3.0-canary-9377e1010-20230712";
var ReactVersion = "18.3.0-canary-546fe4681-20230713";

// Might add PROFILE later.

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8630,7 +8630,7 @@ var devToolsConfig$jscomp$inline_1032 = {
throw Error("TestRenderer does not support findFiberByHostInstance()");
},
bundleType: 0,
version: "18.3.0-canary-9377e1010-20230712",
version: "18.3.0-canary-546fe4681-20230713",
rendererPackageName: "react-test-renderer"
};
var internals$jscomp$inline_1231 = {
Expand Down Expand Up @@ -8661,7 +8661,7 @@ var internals$jscomp$inline_1231 = {
scheduleRoot: null,
setRefreshHandler: null,
getCurrentFiber: null,
reconcilerVersion: "18.3.0-canary-9377e1010-20230712"
reconcilerVersion: "18.3.0-canary-546fe4681-20230713"
};
if ("undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__) {
var hook$jscomp$inline_1232 = __REACT_DEVTOOLS_GLOBAL_HOOK__;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9056,7 +9056,7 @@ var devToolsConfig$jscomp$inline_1074 = {
throw Error("TestRenderer does not support findFiberByHostInstance()");
},
bundleType: 0,
version: "18.3.0-canary-9377e1010-20230712",
version: "18.3.0-canary-546fe4681-20230713",
rendererPackageName: "react-test-renderer"
};
var internals$jscomp$inline_1272 = {
Expand Down Expand Up @@ -9087,7 +9087,7 @@ var internals$jscomp$inline_1272 = {
scheduleRoot: null,
setRefreshHandler: null,
getCurrentFiber: null,
reconcilerVersion: "18.3.0-canary-9377e1010-20230712"
reconcilerVersion: "18.3.0-canary-546fe4681-20230713"
};
if ("undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__) {
var hook$jscomp$inline_1273 = __REACT_DEVTOOLS_GLOBAL_HOOK__;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ if (
}
"use strict";

var ReactVersion = "18.3.0-canary-9377e1010-20230712";
var ReactVersion = "18.3.0-canary-546fe4681-20230713";

// ATTENTION
// When adding new symbols to this file,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -616,4 +616,4 @@ exports.useSyncExternalStore = function (
exports.useTransition = function () {
return ReactCurrentDispatcher.current.useTransition();
};
exports.version = "18.3.0-canary-9377e1010-20230712";
exports.version = "18.3.0-canary-546fe4681-20230713";
Original file line number Diff line number Diff line change
Expand Up @@ -619,7 +619,7 @@ exports.useSyncExternalStore = function (
exports.useTransition = function () {
return ReactCurrentDispatcher.current.useTransition();
};
exports.version = "18.3.0-canary-9377e1010-20230712";
exports.version = "18.3.0-canary-546fe4681-20230713";

/* global __REACT_DEVTOOLS_GLOBAL_HOOK__ */
if (
Expand Down
Original file line number Diff line number Diff line change
@@ -1 +1 @@
9377e10105b41976c77c7f664f2363cb8c41ac8a
546fe4681c52de6a333a55cedb141c87b626425e

0 comments on commit 9ecc0a1

Please sign in to comment.