Reactive<V>: { dispose(reason: string): void; isDisposed(): boolean; on(handler: ((value: Passed<V>) => void)): Unsubscriber; onValue(handler: ((value: V) => void)): Unsubscriber; set?(value: V): void; } Type declaration
dispose:function
- dispose(reason): void
Returns void
isDisposed:function
- isDisposed(): boolean
Returns boolean
on:function
- on(handler): Unsubscriber
Parameters
- handler: ((value: Passed<V>) => void)
- (value): void
Returns void
onValue:function
- onValue(handler): Unsubscriber
Parameters
- handler: ((value: V) => void)
- (value): void
Returns void
set?:function
- set(value): void
Returns void
Subscribes to a reactive. Receives data as well as signals. Use
onValue
if you just care about values.Return result unsubscribes.