mobx-keystone

    Function onPatches

    • Adds a listener that will be called every time a patch is generated for the tree of the given target object.

      Parameters

      • subtreeRoot: object

        Subtree root object of the patch listener.

      • listener: OnPatchesListener

        The listener function that will be called everytime a patch is generated for the object or its children.

      Returns OnPatchesDisposer

      A disposer to stop listening to patches.

    MMNEPVFCICPMFPCPTTAAATR