/*
The list of all parents, starting from the closest ones.
function getParents() {
    const parents = []
    let parent = state.parent

    while (parent) {
      parents.push(parent)
      parent = parent.parent
    }

    return parents
  }