Methods
# static addNotification(notification)
Add a notification to the store
Parameters:
Name | Type | Description |
---|---|---|
notification |
NotificationProps
|
# static getNotifications() → {Array.<NotificationProps>}
Get all notifications.
array of notifications
Array.<NotificationProps>
# static removeNotification(index) → {NotificationProps}
Remove a notification given its index
Parameters:
Name | Type | Description |
---|---|---|
index |
number
|
notification index |
the notificaion that was removed from the store