mirror of
https://github.com/zebrajr/react.git
synced 2026-01-15 12:15:22 +00:00
[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.
This commit is contained in:
committed by
GitHub
parent
98286cf8e3
commit
594fb5e9ab
@@ -284,7 +284,7 @@ export function parseStackTrace(
|
||||
export function extractLocationFromOwnerStack(
|
||||
error: Error,
|
||||
): ReactFunctionLocation | null {
|
||||
const stackTrace = parseStackTrace(error, 0);
|
||||
const stackTrace = parseStackTrace(error, 1);
|
||||
const stack = error.stack;
|
||||
if (
|
||||
!stack.includes('react_stack_bottom_frame') &&
|
||||
|
||||
Reference in New Issue
Block a user