Delay notification appearance
You can delay the notification appearance as shown below. Under the hood, the library simply uses setTimeout
for you.
toast('Show now');
toast('Show after 1sec', { delay: 1000 });
Important
toast.dismiss
has no effect if called during the delay before a given toast appears.