Skip to main content

Class: ClientAdapter

@evolv/react.ClientAdapter

Constructors

constructor

new ClientAdapter(options, hydratedState?)

Parameters

NameType
optionsEvolvClientOptions
hydratedState?Record<string, any>

Accessors

client

get client(): EvolvClient

Returns

EvolvClient


hydratedState

get hydratedState(): Record<string, any>

Returns

Record<string, any>


isBrowser

get isBrowser(): boolean

Returns

boolean

Methods

emit

emit(event): void

Parameters

NameType
eventstring

Returns

void


hydrate

hydrate(): Promise<void>

Returns

Promise<void>


initialize

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

Parameters

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

Returns

void