hooks/useSCFetchEvent
Functions
useSCFetchEvent()
useSCFetchEvent(
object
):object
info
This custom hook is used to fetch an event object.
Parameters
Parameter | Type | Description |
---|---|---|
object | object | * |
object.autoSubscribe ? | boolean | - |
object.cacheStrategy ? | CacheStrategies | |
object.event ? | SCEventType | * |
object.id ? | string | number | * |
Returns
object
Member | Type |
---|---|
error | string |
scEvent | SCEventType |
setSCEvent | (event ) => void |