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