Skip to main content

hooks/useSCFetchCategories

Functions

useSCFetchCategories()

useSCFetchCategories(props?): object

info

This custom hook is used to fetch categories.

Context can be consumed in this way:
const {categories, isLoading} = useSCFetchCategories();

Parameters

ParameterTypeDescription
props?object
props.cacheStrategy?CacheStrategies-

Returns

object

MemberType
categoriesSCCategoryType[]
isLoadingboolean

Source

packages/react-core/src/hooks/useSCFetchCategories.ts:41