We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ef8b6fa commit 3fc1bc6Copy full SHA for 3fc1bc6
packages/react-devtools-shared/src/backend/utils/index.js
@@ -360,8 +360,9 @@ function collectStackTrace(
360
const callSite = structuredStackTrace[i];
361
const name = callSite.getFunctionName();
362
if (
363
- name.includes('react_stack_bottom_frame') ||
364
- name.includes('react-stack-bottom-frame')
+ name != null &&
+ (name.includes('react_stack_bottom_frame') ||
365
+ name.includes('react-stack-bottom-frame'))
366
) {
367
// We pick the last frame that matches before the bottom frame since
368
// that will be immediately inside the component as opposed to some helper.
0 commit comments