Home > @uniformdev/context > VisitorDataStore

VisitorDataStore class

Signature:

Constructors

Constructor

Modifiers

Description

(constructor)(options)

Constructs a new instance of the VisitorDataStore class

Properties

Property

Modifiers

Type

Description

data

readonly

VisitorData

Gets the current visitor data. This property is always up to date.

decayEnabled

readonly

boolean

events

readonly

{ on: { <Key extends keyof VisitorDataStoreEvents>): void; }; }

Subscribe to events from storage

options

readonly

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