The ToastProvider must be added to the application before using the addToast function. This is required to initialize the context for managing toasts.
ToastProvider
addToast