Function: useEventStore()
useEventStore<
E,K>(events,key,deps?):SyncStore
Defined in: coreUtils/hooks.ts:55
Creates an event store which changes when an event triggers with the specified event type.
Type Parameters
| Type Parameter |
|---|
|
|
Parameters
| Parameter | Type | Description |
|---|---|---|
|
| an observable object to subscribe with the result store |
|
| event type from the |
|
| hook dependency list to re-subscribe to the store on changes |