Skip to main content

hooks/useSCFetchCategory

Functions

useSCFetchCategory()

useSCFetchCategory(object): object

info

This custom hook is used to fetch a category object.

Parameters

ParameterTypeDescription
objectobject*
object.cacheStrategy?CacheStrategies
object.category?SCCategoryType*
object.id?string | number*

Returns

object

MemberType
errorstring
scCategorySCCategoryType
setSCCategoryDispatch<SetStateAction<SCCategoryType>>

Source

packages/react-core/src/hooks/useSCFetchCategory.ts:20