Function getRootStore

  • Gets the root store of a given tree child, or undefined if none.

    Type Parameters

    • T extends object

    Parameters

    • node: object

      Target to find the root store for.

    Returns T | undefined

    T Root store type.