usePreferences
hook is used to retrieve the subscriber preferences. The first item in the list will represent the subscriber global preferences,
while the remaining items will correspond to the preferences for each workflow.
The hook returns both critical and non-critical preferences. Critical preferences are those that are required for the subscriber to receive notifications,
while non-critical preferences are those that are optional and could be controlled by the subscriber. You can learn more about the preferences here.
By default the preferences are cached, but you can use the refetch
function to fetch the latest preferences.
usePreferences
propsusePreferences
returnsundefined
.