Function: useObservedProperty()
useObservedProperty<
E,K,R>(events,key,getSnapshot,deps?):R
Defined in: coreUtils/hooks.ts:25
Subscribes to a value which changes are tracked by the specified event.
Type Parameters
| Type Parameter |
|---|
|
|
|
Parameters
| Parameter | Type | Description |
|---|---|---|
|
| an observable object to subscribe with the result store |
|
| event type from the |
| () => | a function to get a snapshot of an observed property state |
|
| hook dependency list to re-subscribe to the store on changes |
Returns
R