Skip to main content

hooks/useSCFollowedCategoriesManager

Functions

useSCFollowedCategoriesManager()

useSCFollowedCategoriesManager(user?, updateUser?): object | object

info

This custom hook is used to manage the categories followed.

How to use it:

Follow these steps:

1. const scUserContext: SCUserContextType = useSCUser();
2. const scFollowedCategoriesManager: SCFollowedCategoriesManagerType = scUserContext.manager.categories;
3. scFollowedCategoriesManager.isFollowed(category)

Parameters

ParameterType
user?SCUserType
updateUser?(info) => void

Returns

object | object

Source

packages/react-core/src/hooks/useSCFollowedCategoriesManager.ts:22