whole_func_string: function preventTransition(current, newState, diff) {
      if (!current) return false
  
      return (newState.state == current.state) && (Object.keys(diff.all).length == 0)
    }
func_code_string: function preventTransition(current, newState, diff) {
      if (!current) return false
  
      return (newState.state == current.state) && (Object.keys(diff.all).length == 0)
    }
func_documentation_string: /*
  Return whether the passed state is the same as the current one
  in which case the router can ignore the change.