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

arg

boolean

Returns

void

addNotification()

addNotification(notification): void

Parameters

notification

Notification | Notification[]

Returns

void

clearNotifications()

clearNotifications(): void

Returns

void

removeNotification()

removeNotification(id): void

Parameters

id

string | number

Returns

void