Skip to content

Added Global Toast API

Latest

Choose a tag to compare

@Nyloth9 Nyloth9 released this 07 Jul 11:23
· 4 commits to main since this release

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.