Hydrate a Store from a v2 snapshot.
Two forms:
deserialize(snap) builds and returns a fresh Store.deserialize(store, snap) hydrates store in place — every existing
node is discarded and replaced with the snapshot's contents — and
returns nothing. This is the form history/undo use: it reuses the
caller's Store instance (and its throttle policy, subscribers, and
identity) rather than swapping in a new one.
Hydrate a Store from a v2 snapshot.
Two forms:
deserialize(snap)builds and returns a freshStore.deserialize(store, snap)hydratesstorein place — every existing node is discarded and replaced with the snapshot's contents — and returns nothing. This is the form history/undo use: it reuses the caller'sStoreinstance (and its throttle policy, subscribers, and identity) rather than swapping in a new one.