Home > @uniformdev/context > VisitorDataStore
VisitorDataStore class
Signature:
Constructors
| Constructor | Modifiers | Description |
|---|---|---|
| (constructor)(options) | Constructs a new instance of the <code>VisitorDataStore</code> class |
Properties
| Property | Modifiers | Type | Description |
|---|---|---|---|
| data | <code>readonly</code> | VisitorData | Gets 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
| Method | Modifiers | Description |
|---|---|---|
| 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 |