Uncaught TypeError: container is null
removeContainer Toast.svelte:80
setTimeout handler*removeContainer Toast.svelte:79
close Toast.svelte:60
setTimeout handler*instance3/< Toast.svelte:42
run index.mjs:20
mount_component index.mjs:2101
flush index.mjs:1329
init index.mjs:2197
My guess is that both set a timeout to remove the container for the toast and when one came first the other doesn't find the container anymore. My suggestion hold a variable to the timeout and remove timeout when new toast comes and override the timeout like this.
you can reproduce it directly in the documentation:
https://oli8.github.io/spaper/#/components/Toast
Stacktrace from my project:
My guess is that both set a timeout to remove the container for the toast and when one came first the other doesn't find the container anymore. My suggestion hold a variable to the timeout and remove timeout when new toast comes and override the timeout like this.