Home > @uniformdev/context > VisitorDataStore

VisitorDataStore class

Signature:

Constructors

ConstructorModifiersDescription
(constructor)(options)Constructs a new instance of the <code>VisitorDataStore</code> class

Properties

PropertyModifiersTypeDescription
data<code>readonly</code>VisitorDataGets the current visitor data. This property is always up to date.
decayEnabled<code>readonly</code>boolean
events<code>readonly</code>{ on: { <Key extends keyof VisitorDataStoreEvents>): void; }; }Subscribe to events from storage
options<code>readonly</code>VisitorDataStoreOptions

Methods

MethodModifiersDescription
delete(fromAllDevices)Deletes visitor data (forgetting them) In most cases you should use forget() on the Context instead of this function, which also clears the Context state.
updateData(commands)Push data update command(s) into the visitor data