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 d49811c commit 4409be8Copy full SHA for 4409be8
packages/react-devtools-scheduling-profiler/src/import-worker/preprocessData.js
@@ -168,8 +168,14 @@ function processTimelineEvent(
168
const type = args.data.type;
169
170
if (type.startsWith('react-')) {
171
- // Filter out fake React events dispatched by invokeGuardedCallbackDev.
172
- return;
+ const stackTrace = args.data.stackTrace;
+ if (stackTrace) {
173
+ const topFrame = stackTrace[stackTrace.length - 1];
174
+ if (topFrame.url.includes('node_modules/react-dom')) {
175
+ // Filter out fake React events dispatched by invokeGuardedCallbackDev.
176
+ return;
177
+ }
178
179
}
180
181
const startTime = (ts - currentProfilerData.startTime) / 1000;
0 commit comments