Skip to main content
Frontend
Interviews
.dev
Problems
Loading problem…
764. React External Store Snapshot Consistency
Medium
•
...
Select the best answer.
const
state
=
useSyncExternalStore
(
subscribe
,
getSnapshot
)
Why use useSyncExternalStore over ad-hoc subscribe in useEffect?
It is shorter syntax only
It provides a React-integrated snapshot contract that avoids tearing and keeps reads consistent
It turns store updates into reducers
It batches network requests
Submit Answer
Reveal Answer
Select an option and submit your answer.
Auto-advance on correct answer