Skip to content

Commit

Permalink
Sync reconciler forks
Browse files Browse the repository at this point in the history
  • Loading branch information
pandaiolo committed Oct 28, 2022
1 parent e9aa33e commit 776bd87
Showing 1 changed file with 1 addition and 1 deletion.
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 @@ -1510,7 +1510,7 @@ function updateSyncExternalStore<T>(
}
}
}
const prevSnapshot = hook.memoizedState;
const prevSnapshot = (currentHook || hook).memoizedState;
const snapshotChanged = !is(prevSnapshot, nextSnapshot);
if (snapshotChanged) {
hook.memoizedState = nextSnapshot;
Expand Down

0 comments on commit 776bd87

Please sign in to comment.