Skip to content

Commit 911f12b

Browse files
authored
Fix a bug with memoizedState affecting React DevTools
1 parent 045e5bc commit 911f12b

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/renderers/shared/fiber/ReactFiberBeginWork.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -383,6 +383,7 @@ module.exports = function<T, P, I, TI, PI, C, CX, PL>(
383383
priorityLevel,
384384
);
385385
markChildAsProgressed(current, workInProgress, priorityLevel);
386+
memoizeState(workInProgress, state);
386387
return workInProgress.child;
387388
}
388389
}

0 commit comments

Comments
 (0)