Skip to main content

The usePreferences hook provides a way to fetch and manage notification preferences for the current subscriber. This includes both global preferences and workflow-specific preferences.

Return Value#

Example Usage#

Here’s how to use the usePreferences hook to display and manage notification preferences:

With Channel Groups#

You can organize preferences by channel type:

With Critical Workflows#

Some workflows might be marked as critical, meaning they cannot be disabled:

Note

Changes to preferences are automatically synchronized with the server and will affect future notifications immediately.