windease API reference - v0.8.0
    Preparing search index...

    Function deserialize

    • 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.

      Parameters

      • snap: unknown

      Returns Store

    • 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.

      Parameters

      • store: Store
      • snap: unknown

      Returns void