function updateLocation(method) {
  return (...args) => ({
    type: CALL_HISTORY_METHOD,
    payload: { method, args }
  })
}
This action type will be dispatched by the history actions below.
If you're writing a middleware to watch for navigation events, be sure to
look for actions of this type.