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
Name | Type |
---|---|
key | string |
Returns
boolean
destroy
▸ destroy(): void
Returns
void
get
▸ get<T
>(key
): T
Type parameters
Name | Type |
---|---|
T | any |
Parameters
Name | Type |
---|---|
key | string |
Returns
T
initialize
▸ initialize(uid
, remoteContext?
, localContext?
): void
Parameters
Name | Type |
---|---|
uid | string |
remoteContext? | Record <string , any > |
localContext? | Record <string , any > |
Returns
void
pushToArray
▸ pushToArray(key
, value
, local?
, limit?
): boolean
Parameters
Name | Type |
---|---|
key | string |
value | any |
local? | boolean |
limit? | number |
Returns
boolean
remove
▸ remove(key
): boolean
Parameters
Name | Type |
---|---|
key | string |
Returns
boolean
resolve
▸ resolve(): Record
<string
, any
>
Returns
Record
<string
, any
>
set
▸ set(key
, value
, local?
): boolean
Parameters
Name | Type |
---|---|
key | string |
value | any |
local? | boolean |
Returns
boolean
update
▸ update(updates
, local?
): void
Parameters
Name | Type |
---|---|
updates | Record <string , any > |
local? | boolean |
Returns
void