The hook will initially return undefined while the data loads from our API. Once it has loaded, your component will re-render and the hook will return an object containing the fields described under "Available Data" above. The component will automatically re-render if any of the data changes, i.e., this data is always "live".
This callback will be called once with the current notification summary, and then again every time the data changes. The argument passed to the callback is an object which will contain the fields described under "Available Data" above..
An object that can be used to filter the notifications returned.
This is an object with the following fields:
metadata
optional
EntityMetadata
An arbitrary JSON object specified when the notification is created. The value for a metadata entry should be an object representing the metadata key/value to filter on. For example, to show only notifications with the metadata key of "category" set to "sales", set the filter to { metadata: { category: "sales" } }.
location
optional
Location
The location where the notifications live. This will be the location of the thread containing the message which prompted the notification.
groupID
optional
string
The group to which the message that prompted the notification belongs.