Skip to main content

Interface: SubscribeOptions<R, E>

The options passed to Replicache.subscribe.

Type parameters

NameType
Rextends ReadonlyJSONValue | undefined
EE

Methods

onData

onData(result): void

Called when the return value of the body function changes.

Parameters

NameType
resultR

Returns

void


onDone

Optional onDone(): void

If present, called when the subscription is removed/done.

Returns

void


onError

Optional onError(error): void

If present, called when an error occurs.

Parameters

NameType
errorE

Returns

void