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