mirror of
https://github.com/facebook/react-native.git
synced 2025-11-01 09:14:26 +00:00
Summary: Pull Request resolved: https://github.com/facebook/react-native/pull/52400 `react-stack-bottom-frame` -> `react_stack_bottom_frame`. This survives `babel/plugin-transform-function-name`, but now frames will be displayed as `at Object.react_stack_bottom_frame (...)` in V8. Checks that were relying on exact function name match were updated to use either `.indexOf()` or `.includes()` For backwards compatibility, both React DevTools and Flight Client will look for both options. I am not so sure about the latter and if React version is locked. DiffTrain build for [91d097b2c588a0977a7a10ed12512dc8a34e3a5b](https://github.com/facebook/react/commit/91d097b2c588a0977a7a10ed12512dc8a34e3a5b) Reviewed By: jackpope Differential Revision: D77601866 fbshipit-source-id: 24ed8713af4bebbaeb7a612333cd79c51b696565
This commit is contained in:
committed by
Facebook GitHub Bot
parent
85d10ed904
commit
3561791ff8
@@ -781,7 +781,7 @@ describe('LogBox', () => {
|
||||
'\n\nCheck the top-level render call using <TestComponent>. ' +
|
||||
'It was passed a child from TestComponent. ' +
|
||||
'See https://react.dev/link/warning-keys for more information.',
|
||||
componentStackFrames: [],
|
||||
componentStackFrames: ['<anonymous />', '<TestComponent />'],
|
||||
isDismissable: true,
|
||||
});
|
||||
});
|
||||
@@ -818,7 +818,7 @@ describe('LogBox', () => {
|
||||
title: 'Console Error',
|
||||
message:
|
||||
'Invalid prop `invalid` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.',
|
||||
componentStackFrames: [],
|
||||
componentStackFrames: ['<TestComponent />'],
|
||||
isDismissable: true,
|
||||
});
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user