[Fast Refresh] Find and remount wrapper edits behind lazy() (#36965)
Two bugs: - Type changes to a lazy's inner component (e.g., adding a `memo` comparison function) were missed by the refresh scan. - If a SimpleMemoComponent needs to be remounted, previously resolveRemountTypeForHotReloading would return the inner function and we would incorrectly recreate the fiber as a FunctionComponent. Instead, we can just use elementType consistently now that the beginWork functions consistently call resolveFamily on the wrapped components.
S
Sophie Alpert committed
5123b063a7b3cd5c42ea2be2ccebe4e68d8b12e3
Parent: 4400d6c
Committed by GitHub <noreply@github.com>
on 7/8/2026, 4:59:07 PM