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

    Interface ContextActionCreators

    The context action creators.

    interface ContextActionCreators {
        setContext(
            payload: SetContextPayload,
        ): { payload: SetContextPayload; type: string };
        setLocation(payload: SetLocationPayload): { payload: P; type: string };
        setView(payload: SetViewPayload): { payload: P; type: string };
    }
    Index

    Methods

    • Sets the entire context.

      Parameters

      Returns { payload: SetContextPayload; type: string }

      A dispatchable action.

    • Sets the location context property without modifying any other context properties.

      Parameters

      Returns { payload: P; type: string }

      A dispatchable action.

    • Sets the view context property without modifying any other context properties.

      Parameters

      Returns { payload: P; type: string }

      A dispatchable action.