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

    Interface DictionaryFieldContextActionCreators

    The dictionary field context action creators.

    interface DictionaryFieldContextActionCreators {
        addContext(
            payload: AddDictionaryFieldContextActionCreatorPayload,
        ): { payload: AddDictionaryFieldContextActionCreatorPayload; type: string };
        removeContext(field: string): { payload: string; type: string };
        setContext(
            payload: DictionaryFieldContextPayload,
        ): { payload: P; type: string };
    }
    Index

    Methods

    • Removes a dictionary field context field-key pair.

      Parameters

      • field: string

        The field to remove from the context (e.g., "price").

      Returns { payload: string; type: string }

      A dispatchable action.

    • Sets the dictionary field context.

      Parameters

      Returns { payload: P; type: string }

      A dispatchable action.