React JS Quiz
Home
Blog
Privacy Policy
Contact Us
useSyncExternalStore Quiz
What should getSnapshot avoid doing?
Report this question
Causing side effects or mutating the external store
Show Explanation
getSnapshot runs during rendering, so it should be pure and only read the snapshot value.
Returning the current store value
Reading immutable data
Returning a cached object
Next Question (12/20)