mobx-bonsai
    Preparing search index...

    Function getSnapshot

    • Returns a stable snapshot of a node.

      This function computes and caches a snapshot of the given node. It preserves referential integrity by reusing snapshots for unchanged sub-parts.

      If not a node it will throw.

      Type Parameters

      • T extends object

      Parameters

      • node: T

        The node to snapshot.

      Returns T

      A snapshot of the node.