@coveo/headless-react
    Preparing search index...

    Interface StandaloneSearchBoxSetActionCreators

    The commerce standalone search box set action creators.

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

    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<StateNeededForPlanCommerceAPIRequest>,
      >

      A dispatchable action.