mobx-sentinel API doc
    Preparing search index...
    • Get all ancestors of a key path

      Parameters

      • keyPath: KeyPath
      • includeSelf: boolean = true

        Whether to include the path itself

      Returns Generator<KeyPath>

      • KeyPath.Self for single-level paths when includeSelf is false
      • Key paths starting from the closest ancestor and moving up to the root