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.

Hook parameters

Return value

Preference type

The Preference type from @novu/react includes these properties:

Example usage

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

With filtering

You can filter preferences by tags or severity:

With channel groups

You can organize preferences by channel type:
Changes to preferences are automatically synchronized with the server and will affect future notifications immediately.