Skip to content

Commit 776bd87

Browse files
committed
Sync reconciler forks
1 parent e9aa33e commit 776bd87

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1510,7 +1510,7 @@ function updateSyncExternalStore<T>(
15101510
}
15111511
}
15121512
}
1513-
const prevSnapshot = hook.memoizedState;
1513+
const prevSnapshot = (currentHook || hook).memoizedState;
15141514
const snapshotChanged = !is(prevSnapshot, nextSnapshot);
15151515
if (snapshotChanged) {
15161516
hook.memoizedState = nextSnapshot;

0 commit comments

Comments
 (0)