This release introduces a Global API for toasts — giving you the ability to trigger toast notifications from anywhere in the app, without needing to use the useToast() hook or access context manually.
✅ What's New
You can now use the following headless functions globally:
- showToast(content, options)
- updateToast(options)
- dismissToast(options)
- removeToast(options)
- promiseToast(promise, messages, options)
- getToastQueue(options)
- clearToastQueue(options)
These functions work without relying on component context or reactivity, making them great for usage in utilities, services, async flows, etc.