Returns the notifier for showing the user messages, dialogs and busy indicators.
Every method is always present. With no ReactNotifierProvider above, messages, dialogs and busy indicators show nothing (a dialog resolves as if cancelled), and log, warn, error and showError go to the global Notifier.
log
warn
error
showError
function MyComponent() { const notifier = useNotifier(); const handleClick = () => { notifier.showMessage('Hello World!', { type: NotifierType.Success }); }; return <button onClick={handleClick}>Show INotifier</button>;} Copy
function MyComponent() { const notifier = useNotifier(); const handleClick = () => { notifier.showMessage('Hello World!', { type: NotifierType.Success }); }; return <button onClick={handleClick}>Show INotifier</button>;}
Returns the notifier for showing the user messages, dialogs and busy indicators.