Function: onSuccess()
onSuccess<
C
>(callback
): (action
) =>void
Register a "success" hook callback on action. Callback may be async.
Type parameters
• C extends object
Parameters
• callback
Returns
Function
Parameters
• action: Action
<C
>
Returns
void
Source
packages/core/src/actions/context/enhancers/hooks/onSuccess.ts:20