Commit 4e99ad2
committed
Remove state queue from useSyncExternalStore
The userspace shim of useSyncExternalStore uses a useState hook because
it's the only way to trigger a re-render. We don't actually use the
queue to store anything, because we read the current value directly
from the store.
In the native implementation, we can schedule an update on the fiber
directly, without the overhead of a queue.1 parent c65b925 commit 4e99ad2
0 file changed
0 commit comments