Skip to main content

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

ParameterType
user?SCUserType

Returns

object | object

Source

packages/react-core/src/hooks/useSCSubscribedEventsManager.ts:35