Show Notification
Displays a notification message in the top right.
Syntax
store.dispatch({ type: "notifications/SHOW_NOTIFICATION", payload: { message, autoHide } });
Parameters
message
The notification message to display
autohide
A boolean indicating whether the notification hides after a certain period of time
Examples
Displays the message “Hello, world!”.
store.dispatch({
type: "notifications/SHOW_NOTIFICATION",
payload: { message: "Hello, world!", autoHide: true }
});