dillon1000/react
Commit
Browse files Remove redundant __DEV__ condition (#32810)
It used to be that in `__DEV__` we wrapped this `renderWithHooks`, `checkDidRenderIdHook` pair in calls to `setIsRendering()`. However, that dev-only bookkeeping was removed in https://github.com/facebook/react/pull/29206 leaving this redundant check which runs identical code in dev and in prod. ## Test Plan * Manually confirm both cases are the same * GitHub CI tests
Changed paths1 file
First-parent comparisonpackages/react-reconciler/src/ReactFiberBeginWork.js ModifiedPatch
Files changed
Rendering syntax-highlighted changes…