Skip to content

Interface: AtomObserver<T>

API / @xmachines/play-atom / AtomObserver

Defined in: types.ts:34

The observer of an atom, in the object form

Each member is optional, so an observer of the value alone gives next alone. An atom completes never and it fails never, so error and complete stay for the consumers that adapt an atom to an observable.

Type Parameters

Type Parameter
T

Properties

PropertyTypeDefined in
complete?() => voidtypes.ts:37
error?(error) => voidtypes.ts:36
next?(value) => voidtypes.ts:35