Skip to content

Commit a922f1c

Browse files
authored
Fix cache refresh bug that broke DevTools (#20687)
Will follow up with test
1 parent e51bd6c commit a922f1c

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

‎packages/react-reconciler/src/ReactFiberHooks.new.js‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1836,7 +1836,7 @@ function refreshCache<T>(fiber: Fiber, seedKey: ?() => T, seedValue: T) {
18361836
consteventTime=requestEventTime();
18371837
constroot=scheduleUpdateOnFiber(provider,lane,eventTime);
18381838
if(root!==null){
1839-
entangleTransitions(root,fiber,lane);
1839+
entangleTransitions(root,provider,lane);
18401840
}
18411841

18421842
constseededCache=newMap();

‎packages/react-reconciler/src/ReactFiberHooks.old.js‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1815,7 +1815,7 @@ function refreshCache<T>(fiber: Fiber, seedKey: ?() => T, seedValue: T) {
18151815
consteventTime=requestEventTime();
18161816
constroot=scheduleUpdateOnFiber(provider,lane,eventTime);
18171817
if(root!==null){
1818-
entangleTransitions(root,fiber,lane);
1818+
entangleTransitions(root,provider,lane);
18191819
}
18201820

18211821
constseededCache=newMap();

0 commit comments

Comments
 (0)