Similar to the what React's useState
hook returns but for observables.
It's a thruple containing:
BehaviourSubject
)$.next(..)
)$.getValue()
)isStateObservable :: ObservableLike a -> boolean
Determines if the given observable like value is a StateObservable
stateOf :: a -> StateObservable a
Create a stateful observable. Uses RxJS' BehaviourSubject
under the hood.
Type describing the type of the data stored.
Initial state of the observable (see [[BehaviourSubject]])
Generated using TypeDoc
Either StateObservable or [[Observable]]