code: function updateLocation(method) {
    return function () {
      for (var _len = arguments.length, args = Array(_len), _key = 0; _key < _len; _key++) {
        args[_key] = arguments[_key];
      }
  
      return {
        type: _constants.CALL_HISTORY_METHOD,
        payload: { method: method, args: args }
      };
    };
  }
docs: 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.