dillon1000/react
Commit
Browse files Clear effect tags from a fiber that suspends in non-concurrent mode
Even though we commit the fiber in an incomplete state, we shouldn't fire any lifecycles or effects. We already did this for classes, but now with useEffect, the same is needed for other types of work, too.
Changed paths2 files
First-parent comparisonpackages/react-reconciler/src/ReactFiberUnwindWork.js ModifiedM packages/react-reconciler/src/__tests__/ReactSuspense-test.internal.js ModifiedPatch
Files changed
Rendering syntax-highlighted changes…