Minimal external store (subscribe / getSnapshot), compatible with React's useSyncExternalStore and usable from any framework. Snapshots are immutable; set replaces the snapshot only when a field actually changed.
subscribe
getSnapshot
useSyncExternalStore
set
Readonly
Shallow-merge patch; notifies only when something changed.
patch
Minimal external store (
subscribe/getSnapshot), compatible with React'suseSyncExternalStoreand usable from any framework. Snapshots are immutable;setreplaces the snapshot only when a field actually changed.