Skip to main content

Function: applySerializedActionAndSyncNewModelIds()

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

Applies (runs) a serialized action over a target object. In this mode newly generated / modified model IDs previously tracked by applySerializedActionAndTrackNewModelIds will be synchronized after the action is applied. This means this method is usually used on the client side.

If you intend to apply non-serialized actions check applyAction instead.

Type Parameters​

Type ParameterDefault type
TRetany

Parameters​

ParameterTypeDescription
subtreeRootobjectSubtree root target object to run the action over.
callSerializedActionCallWithModelIdOverridesThe serialized action, usually as coming from the server/client.

Returns​

TRet

The return value of the action, if any.