Class: EvolvClient
@evolv/react.EvolvClient
Constructors
constructor
• new EvolvClient(options
)
Parameters
Name | Type |
---|---|
options | Partial <EvolvClientOptions > |
Properties
context
• context: EvolvContext
environment
• environment: string
Methods
allowEvents
▸ allowEvents(): void
Returns
void
clearActiveKeys
▸ clearActiveKeys(prefix?
): void
Deprecated
Parameters
Name | Type |
---|---|
prefix? | string |
Returns
void
confirm
▸ confirm(): void
Returns
void
contaminate
▸ contaminate(details?
, allExperiments?
): void
Parameters
Name | Type |
---|---|
details? | Record <string , any > |
allExperiments? | boolean |
Returns
void
destroy
▸ destroy(): void
Returns
void
emit
▸ emit(type
, metadata?
, flush?
): void
Parameters
Name | Type |
---|---|
type | string |
metadata? | Record <string , any > |
flush? | boolean |
Returns
void
flush
▸ flush(): void
Returns
void
get
▸ get<T
>(key
): SubscribablePromise
<T
| Error
>
Type parameters
Name | Type |
---|---|
T | any |
Parameters
Name | Type |
---|---|
key | string |
Returns
SubscribablePromise
<T
| Error
>
getActiveKeys
▸ getActiveKeys(prefix?
): SubscribablePromise
<{ current
: string
[] ; previous
: string
[] }>
Parameters
Name | Type |
---|---|
prefix? | string |
Returns
SubscribablePromise
<{ current
: string
[] ; previous
: string
[] }>
getConfig
▸ getConfig(key
): SubscribablePromise
<any
>
Parameters
Name | Type |
---|---|
key | string |
Returns
SubscribablePromise
<any
>
getDisplayName
▸ getDisplayName(): SubscribablePromise
<string
>
Returns
SubscribablePromise
<string
>
getEnvConfig
▸ getEnvConfig(key
): SubscribablePromise
<any
>
Parameters
Name | Type |
---|---|
key | string |
Returns
SubscribablePromise
<any
>
initialize
▸ initialize(uid
, remoteContext?
, localContext?
): void
Parameters
Name | Type |
---|---|
uid | string |
remoteContext? | Record <string , any > |
localContext? | Record <string , any > |
Returns
void
isActive
▸ isActive(key
): SubscribablePromise
<boolean
>
Parameters
Name | Type |
---|---|
key | string |
Returns
SubscribablePromise
<boolean
>
off
▸ off(topic
, listener
): void
Parameters
Name | Type |
---|---|
topic | EventName |
listener | Listener |
Returns
void
on
▸ on(topic
, listener
): void
Parameters
Name | Type |
---|---|
topic | EventName |
listener | Listener |
Returns
void
once
▸ once(topic
, listener
): void
Parameters
Name | Type |
---|---|
topic | EventName |
listener | Listener |
Returns
void
preload
▸ preload(prefixed
, configOnly?
, immediate?
): void
Parameters
Name | Type |
---|---|
prefixed | string [] |
configOnly? | boolean |
immediate? | boolean |
Returns
void
reevaluateContext
▸ reevaluateContext(): void
Returns
void