code: function areRoutesShallowEqual(one, two) {
    if (!one || !two) {
      return one === two;
    }
  
    if (one.key !== two.key) {
      return false;
    }
  
    return shallowEqual(one, two);
  }
docs: Whether two routes are the same.