dillon1000/react
Commit
Browse files Warn against state updates from useEffect destroy functions (#18307)
Don't warn about unmounted state updates from within passive destroy function * Fixed test conditional. (It broke after recent variant refactor.) * Changed warning wording for setState from within useEffect destroy callback
Changed paths2 files
First-parent comparisonpackages/react-reconciler/src/ReactFiberWorkLoop.js ModifiedM packages/react-reconciler/src/__tests__/ReactHooksWithNoopRenderer-test.internal.js ModifiedPatch
Files changed
Rendering syntax-highlighted changes…