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
Parameter | Type | Description |
---|---|---|
props ? | object | |
props.cacheStrategy ? | CacheStrategies | - |
Returns
object
Member | Type |
---|---|
categories | SCCategoryType [] |
isLoading | boolean |