constructor()

in packages/search-ui/src/URLManager.ts [149:162]


  constructor(routingOptions: RoutingHandlerOptions = {}) {
    this.routingOptions = {
      readUrl: routingOptions.readUrl || this.readUrl.bind(this),
      writeUrl: routingOptions.writeUrl || this.writeUrl.bind(this),
      urlToState: routingOptions.urlToState || this.urlToState.bind(this),
      stateToUrl: routingOptions.stateToUrl || this.stateToUrl.bind(this),
      routeChangeHandler:
        routingOptions.routeChangeHandler || this.routeChangeHandler.bind(this)
    };

    this.history =
      typeof window !== "undefined" ? createHistory() : createMemoryHistory();
    this.lastPushSearchString = "";
  }