Input value within Observable.
Input Observable.
Optional
observer: PartialObserver<TInput>Observer
Input value within Observable.
Input Observable.
Optional
next: null | ((value: TInput) => void)Notify when a new value is emitted.
Optional
error: null | ((error: any) => void)Notify when a new error is thrown.
Optional
complete: null | (() => void)Notify when the Observable is complete.
Same as [[useSubscription]] except the subscription is established under
useLayoutEffect
.Useful when values are needed before DOM paint.
Use it scarcely as it runs synchronously before browser paint. Too many synchronous emissions from the observable could stretch the commit phase.