CaseContextActions (Deprecated)
CaseContextActions (Deprecated)
|
|
Headless v1 has been deprecated. We recommend using the latest version of the Coveo Headless library. |
The case context action creators.
See Dispatch Actions.
Loader Function
loadCaseContextActions
Loads the case context reducer and returns possible action creators.
Parameters
-
engine:
CoreEngineThe headless engine.
Returns CaseContextActionCreators: The case context action creators.
CaseContextActionCreators
setCaseContext
Sets the case context.
Parameters
-
payload:
Record<string, string>The action creator payload.
Returns PayloadAction<Record<string, string>>: A dispatchable action.
setCaseId
Sets the case id.
Parameters
-
payload:
stringThe action creator payload.
Returns PayloadAction<string>: A dispatchable action.
setCaseNumber
Sets the case number.
Parameters
-
payload:
stringThe action creator payload.
Returns PayloadAction<string>: A dispatchable action.