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