Hex Core JS
    Preparing search index...

    Function useQueryStateSync

    • Synchronizes the given state with the query state (in the URL). Updates occur after a delay to mitigate performance costs associated with updating history.

      Type Parameters

      Parameters

      • values: T
      • typeFilterObject: TypeFilterObject<T>

        A type filter object to translate parsed query params to the type T.

      • onChange: (qp: T) => void

        The set function for queryParams.

      • queryParams: UseQueryStateSyncOptions = {}

        The state to sync.

      Returns void