Hex Core JS
    Preparing search index...

    Function extractQueryParams

    • Extracts the values of the requested query parameters from the query string and removes those values from the query string in the URL.

      Type Parameters

      • T extends Record<any, any>

      Parameters

      • history: Pick<History, "location" | "replace">

        The history object for the application.

      • typeFilterObj: TypeFilterObject<T>

        An object describing what keys to extract and how to filter value types from the query string.

      Returns T

      Currently incompatible with the <QueryStateManager>. If using a <QueryStateManager> use the provided context functionality to get and remove query parameters from the URL.