Skip to main content

Function: useNotifications()

useNotifications(): object

Defined in: react-notifications/src/Provider.tsx:181

Returns

object

defaultViewType

defaultViewType: ViewType

isLoading

isLoading: boolean

notifications?

optional notifications?: Notification[]

setLoading

setLoading: (arg) => void

Parameters

ParameterType
argboolean

Returns

void

addNotification()

addNotification(notification): void

Parameters

ParameterType
notificationNotification | Notification[]

Returns

void

clearNotifications()

clearNotifications(): void

Returns

void

removeNotification()

removeNotification(id): void

Parameters

ParameterType
idstring | number

Returns

void