code: function getParents() {
      const parents = []
      let parent = state.parent
  
      while (parent) {
        parents.push(parent)
        parent = parent.parent
      }
  
      return parents
    }
docs: /*
  The list of all parents, starting from the closest ones.