Function: useNotifications()
useNotifications():
object
Defined in: react-notifications/src/Provider.tsx:181
Returns
object
defaultViewType
defaultViewType:
ViewType
isLoading
isLoading:
boolean
notifications?
optionalnotifications?:Notification[]
setLoading
setLoading: (
arg) =>void
Parameters
| Parameter | Type |
|---|---|
arg | boolean |
Returns
void
addNotification()
addNotification(
notification):void
Parameters
| Parameter | Type |
|---|---|
notification | Notification | Notification[] |
Returns
void
clearNotifications()
clearNotifications():
void
Returns
void
removeNotification()
removeNotification(
id):void
Parameters
| Parameter | Type |
|---|---|
id | string | number |
Returns
void