File tree Expand file tree Collapse file tree 1 file changed +3
-0
lines changed
packages/react-reconciler/src Expand file tree Collapse file tree 1 file changed +3
-0
lines changed Original file line number Diff line number Diff line change @@ -1847,6 +1847,8 @@ function updateStoreInstance<T>(
1847
1847
// snapsho and getSnapshot values to bail out. We need to check one more time.
1848
1848
if ( checkIfSnapshotChanged ( inst ) ) {
1849
1849
// Force a re-render.
1850
+ // We intentionally don't log update times and stacks here because this
1851
+ // was not an external trigger but rather an internal one.
1850
1852
forceStoreRerender ( fiber ) ;
1851
1853
}
1852
1854
}
@@ -1861,6 +1863,7 @@ function subscribeToStore<T>(
1861
1863
// read from the store.
1862
1864
if ( checkIfSnapshotChanged ( inst ) ) {
1863
1865
// Force a re-render.
1866
+ startUpdateTimerByLane ( SyncLane , 'updateSyncExternalStore()' ) ;
1864
1867
forceStoreRerender ( fiber ) ;
1865
1868
}
1866
1869
} ;
You can’t perform that action at this time.
0 commit comments