Skip to content

revertObject

revertObject<T>(object): void

Undoes any changes made since the last time a Data, Endpoint, or Session was saved in the current transaction.

  • Only changes made since the last saveData/saveDataGraphs call are reverted.
  • Only undoes changes made as part of the same transaction, that is, the same endpoint call.
  • If there hasn’t been a saveData/saveDataGraphs call then all changes made since the beginning of the transaction will be reverted. This is always the case for Endpoints since they cannot be saved manually.
  • This function does not revert any changes made to referenced Data/Endpoints (I.e. It leaves the rest of the object graph alone).

Type parameters

T extends Session | Endpoint | Data

Parameters

object: T

The object to revert.

Returns

void


Generated using typedoc-plugin-markdown and TypeDoc