Home > @uniformdev/context > ContextOptions

ContextOptions interface

Signature:

Extends: Omit<VisitorDataStoreOptions, 'manifest' | 'onServerTransitionScoresReceived'>

Properties

Property

Modifiers

Type

Description

manifest

ManifestV2

The Context Manifest to load (from the Context API)

plugins?

Array<ContextPlugin>

(Optional) Context plugins to load at initialize time. Plugins that hook to the log event should be added here so that they can catch init-time log message events.

Note that the Context passed to the plugin is not yet fully initialized, and is intended for event handler attachment only - don't call scores, update, etc on it. If you need to call these methods immediately, attach your plugin after initialisation.

requireConsentForPersonalization?

boolean

(Optional) Only show personalizations if the visitor has given consent. false (default): personalization is not run at all unless storage consent is given