hooks/useSCFetchCategory
Functions
useSCFetchCategory()
useSCFetchCategory(
object
):object
info
This custom hook is used to fetch a category object.
Parameters
Parameter | Type | Description |
---|---|---|
object | object | * |
object.cacheStrategy ? | CacheStrategies | |
object.category ? | SCCategoryType | * |
object.id ? | string | number | * |
Returns
object
Member | Type |
---|---|
error | string |
scCategory | SCCategoryType |
setSCCategory | Dispatch <SetStateAction <SCCategoryType >> |