Function replaceLocationSearch

  • import { replaceLocationSearch } from '@src/hylo-components/utils/usefull/usefull';

    Replaces an entire location search string with a new one.

    Fires the event "hyloLocationSearchChanged" on the windows object.

    Parameters

    • values: URLSearchParams | {
          [key: string]: string;
      }

      an object with key/value pairs or a URLSearchParams object to append to the search string

    • Optional replace: boolean

      whether to create a new history entry or replace the current

    Returns void

Generated using TypeDoc