dillon1000/react
Commit
Browse files Fix: Errors should not escape a hidden Activity (#35074)
If an error is thrown inside a hidden Activity, it should not escape into the visible part of the UI. Conceptually, a hidden Activity boundary is not part of the current UI; it's the same as an unmounted tree, except for the fact that the state will be restored if it's later revealed. Fixes: - https://github.com/facebook/react/issues/35073
Changed paths3 files
First-parent comparisonpackages/react-reconciler/src/ReactFiberThrow.js ModifiedA packages/react-reconciler/src/__tests__/ActivityErrorHandling-test.js AddedM packages/react-refresh/src/__tests__/ReactFreshIntegration-test.js ModifiedPatch
Files changed
Rendering syntax-highlighted changes…