Skip to content

Commit

Permalink
Fix cache refresh bug that broke DevTools (#20687)
Browse files Browse the repository at this point in the history
Will follow up with test
  • Loading branch information
acdlite committed Jan 28, 2021
1 parent e51bd6c commit a922f1c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion packages/react-reconciler/src/ReactFiberHooks.new.js
Original file line number Diff line number Diff line change
Expand Up @@ -1836,7 +1836,7 @@ function refreshCache<T>(fiber: Fiber, seedKey: ?() => T, seedValue: T) {
const eventTime = requestEventTime();
const root = scheduleUpdateOnFiber(provider, lane, eventTime);
if (root !== null) {
entangleTransitions(root, fiber, lane);
entangleTransitions(root, provider, lane);
}

const seededCache = new Map();
Expand Down
2 changes: 1 addition & 1 deletion packages/react-reconciler/src/ReactFiberHooks.old.js
Original file line number Diff line number Diff line change
Expand Up @@ -1815,7 +1815,7 @@ function refreshCache<T>(fiber: Fiber, seedKey: ?() => T, seedValue: T) {
const eventTime = requestEventTime();
const root = scheduleUpdateOnFiber(provider, lane, eventTime);
if (root !== null) {
entangleTransitions(root, fiber, lane);
entangleTransitions(root, provider, lane);
}

const seededCache = new Map();
Expand Down

0 comments on commit a922f1c

Please sign in to comment.