-
Notifications
You must be signed in to change notification settings - Fork 50.2k
Closed as not planned
Closed as not planned
Copy link
Labels
Resolution: StaleAutomatically closed due to inactivityAutomatically closed due to inactivityStatus: UnconfirmedA potential issue that we haven't yet confirmed as a bugA potential issue that we haven't yet confirmed as a bug
Description
if we nest a component imported with React.lazy inside component that is also imported using React.lazy, we will get a re-render of that chain's child. I don't think this behavior is normal
React version: 18.2.0
Steps To Reproduce:
- Create some component "A"
- Import component "A" into component "B" via React.lazy and wrap it in Suspense
- Import component "B" into Component "C" via React.lazy and wrap it in Suspense
- Import component "C" into root component (App)
result:
Codesandbox link:
https://codesandbox.io/s/react-lazy-rerender-bug-h8ynhr
(check console messages)
raymondwang
Metadata
Metadata
Assignees
Labels
Resolution: StaleAutomatically closed due to inactivityAutomatically closed due to inactivityStatus: UnconfirmedA potential issue that we haven't yet confirmed as a bugA potential issue that we haven't yet confirmed as a bug