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