The commerce standalone search box set action creators.

interface StandaloneSearchBoxSetActionCreators {
    fetchRedirectUrl(
        payload: FetchRedirectUrlPayload,
    ): AsyncThunkAction<
        string,
        FetchRedirectUrlPayload,
        AsyncThunkCommerceOptions<StateNeededForRedirect>,
    >;
    registerStandaloneSearchBox(
        payload: RegisterStandaloneSearchBoxPayload,
    ): { payload: RegisterStandaloneSearchBoxPayload; type: string };
    resetStandaloneSearchBox(
        payload: ResetStandaloneSearchBoxPayload,
    ): { payload: ResetStandaloneSearchBoxPayload; type: string };
    updateStandaloneSearchBoxRedirectionUrl(
        payload: RegisterStandaloneSearchBoxPayload,
    ): { payload: RegisterStandaloneSearchBoxPayload; type: string };
}

Methods

  • Preprocesses the query for the current headless state, and retrieves a redirection URL if a redirect trigger was fired in the query pipeline.

    Parameters

    Returns AsyncThunkAction<
        string,
        FetchRedirectUrlPayload,
        AsyncThunkCommerceOptions<StateNeededForRedirect>,
    >

    A dispatchable action.