The context action creators.

interface ContextActionCreators {
    addContext(
        payload: AddContextActionCreatorPayload,
    ): { payload: AddContextActionCreatorPayload; type: string };
    removeContext(key: string): { payload: string; type: string };
    setContext(
        payload: ContextPayload,
    ): { payload: ContextPayload; type: string };
}

Methods

  • Removes a context key-value pair.

    Parameters

    • key: string

      The key to remove from the context (e.g., "age").

    Returns { payload: string; type: string }

    A dispatchable action.

  • Sets the query context.

    Parameters

    Returns { payload: ContextPayload; type: string }

    A dispatchable action.