dillon1000/react
Commit
Browse files Test top level fragment inside lazy semantics (#28852)
This wasn't clearly articulated and tested why the code structure is like this but I think the logic is correct - or at least consistent with the weird semantics. We place this top-level fragment check inside the recursion so that you can resolve how many every Lazy or Usable wrappers you want and it still preserves the same semantics if they weren't there (which they might not be as a matter of a race condition). However, we don't actually recurse with the top-level fragment unwrapping itself because nesting a bunch of keyless fragments isn't the same as a single fragment/element.
Changed paths2 files
First-parent comparisonpackages/react-reconciler/src/ReactChildFiber.js ModifiedM packages/react-reconciler/src/__tests__/ReactFragment-test.js ModifiedPatch
Files changed
Rendering syntax-highlighted changes…