@samitouri / QOS-React-1 / commits / 594fb5e9ab

[DevTools] Always skip 1 frame (#34167)

Follow up to #34093. There's an issue where the skipFrames argument isn't part of the cache key so the other parsers that expect skipping one frame might skip zero and show the internal `fakeJSXDEV` callsite. Ideally we should include the skipFrames as part of the cache key but we can also always just skip one.

Sebastian Markbåge committed Aug 11, 2025 at 01:50 UTC 594fb5e9abea8aee20dec5e0dfba39dac16ce53f
1 file changed +1 -1
packages/react-devtools-shared/src/backend/utils/parseStackTrace.js
+1 -1
@@ -284,7 +284,7 @@ export function parseStackTrace(
284 export function extractLocationFromOwnerStack(
285 error: Error,
286 ): ReactFunctionLocation | null {
287 - const stackTrace = parseStackTrace(error, 0);
287 + const stackTrace = parseStackTrace(error, 1);
288 const stack = error.stack;
289 if (
290 !stack.includes('react_stack_bottom_frame') &&