/**
 * @fileoverview A snapshot is a reference to a specific dispatch for
 * a given action. A microcosm instance maintains a bank of them to
 * efficiently update state.
 * @flow
 */

type Snapshot = {
  last: *,
  next: *,
  status: Status,
  payload: *
}

/**
 * @fileoverview A snapshot is a reference to a specific dispatch for
 * a given action. A microcosm instance maintains a bank of them to
 * efficiently update state.
 * @flow
 */

type Snapshot = {
  // The last state the snapshot was dispatched with. This is used
  // to memoize domain handlers when possible.
  last: *,
  // The next state for the snapshot. The outcome of `updateSnapshot`.
  next: *,
  // Last known status of the action associated with this snapshot.
  status: Status,
  // Last known payload of the action associated with this snapshot.
  payload: *
}

Add comments to document snapshot structure