hooks/useSCSubscribedGroupsManager
Functions
useSCSubscribedGroupsManager()
useSCSubscribedGroupsManager(
user
?):object
|object
info
This custom hook is used to manage the groups followed.
How to use it:
Follow these steps:
1. const scUserContext: SCUserContextType = useSCUser();
2. const scSubscribedGroupsManager: SCSubscribedGroupsManagerType = scUserContext.manager.groups;
3. scSubscribedGroupsManager.isSubscribed(group)
Parameters
Parameter | Type |
---|---|
user ? | SCUserType |
Returns
object
| object
Source
packages/react-core/src/hooks/useSCSubscribedGroupsManager.ts:35