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