Interface: SCFollowedCategoriesManagerType
types/context.SCFollowedCategoriesManagerType
Properties
categories
• categories: number
[]
List of all categories ids followed by the authenticated user
Defined in
packages/react-core/src/types/context.ts:276
emptyCache
• Optional
emptyCache: () => void
Type declaration
▸ (): void
Empty cache to revalidate all categories
Returns
void
Defined in
packages/react-core/src/types/context.ts:306
follow
• Optional
follow: (category
: SCCategoryType
) => Promise
<any
>
Type declaration
▸ (category
): Promise
<any
>
Handle user follow/unfollow category
Parameters
Name | Type |
---|---|
category | SCCategoryType |
Returns
Promise
<any
>
Defined in
packages/react-core/src/types/context.ts:291
isFollowed
• Optional
isFollowed: (category
: SCCategoryType
) => boolean
Type declaration
▸ (category
): boolean
Handle check if a user follow a category, caching data
Parameters
Name | Type |
---|---|
category | SCCategoryType |
Returns
boolean
Defined in
packages/react-core/src/types/context.ts:296
isLoading
• isLoading: (category
: SCCategoryType
) => boolean
Type declaration
▸ (category
): boolean
List of current categories in loading state
Parameters
Name | Type |
---|---|
category | SCCategoryType |
Returns
boolean
Defined in
packages/react-core/src/types/context.ts:286
loading
• loading: number
[]
List of all categories in loading state
Defined in
packages/react-core/src/types/context.ts:281
refresh
• Optional
refresh: () => void
Type declaration
▸ (): void
Refresh categories
Returns
void