Maps a store's ready values, turning a thrown error into an invalid
snapshot; non-ready states pass through unchanged.
Memoizes on the inner snapshot's identity: useSyncExternalStore requires
getSnapshot to return a referentially stable value between emissions,
so this returns the same output object while the input hasn't changed.
Maps a store's ready values, turning a thrown error into an
invalidsnapshot; non-ready states pass through unchanged.Memoizes on the inner snapshot's identity:
useSyncExternalStorerequiresgetSnapshotto return a referentially stable value between emissions, so this returns the same output object while the input hasn't changed.