Skip to main content

Class: EvolvContext

@evolv/nextjs.EvolvContext

Constructors

constructor

new EvolvContext()

Properties

localContext

localContext: LocalContext


remoteContext

remoteContext: RemoteContext | WebRemoteContext


uid

uid: string

Methods

contains

contains(key): boolean

Parameters

NameType
keystring

Returns

boolean


destroy

destroy(): void

Returns

void


get

get<T>(key): T

Type parameters

NameType
Tany

Parameters

NameType
keystring

Returns

T


initialize

initialize(uid, remoteContext?, localContext?): void

Parameters

NameType
uidstring
remoteContext?Record<string, any>
localContext?Record<string, any>

Returns

void


pushToArray

pushToArray(key, value, local?, limit?): boolean

Parameters

NameType
keystring
valueany
local?boolean
limit?number

Returns

boolean


remove

remove(key): boolean

Parameters

NameType
keystring

Returns

boolean


resolve

resolve(): Record<string, any>

Returns

Record<string, any>


set

set(key, value, local?): boolean

Parameters

NameType
keystring
valueany
local?boolean

Returns

boolean


update

update(updates, local?): void

Parameters

NameType
updatesRecord<string, any>
local?boolean

Returns

void