Skip to main content

Function: applyAction()

function applyAction<TRet>(subtreeRoot, call): TRet;

Applies (runs) an action over a target object.

If you intend to apply serialized actions check one of the applySerializedAction methods instead.

Type Parameters​

Type ParameterDefault type
TRetany

Parameters​

ParameterTypeDescription
subtreeRootobjectSubtree root target object to run the action over.
callActionCallThe action, usually as coming from onActionMiddleware.

Returns​

TRet

The return value of the action, if any.