2nthony / vercel-toast

💬 Framework-agnostic vercel design's toast component (≈1KB Gzipped)
https://vercel-toast.vercel.app
MIT License
89 stars 10 forks source link

the node to be removed is not a child of this node #186

Closed esau-morais closed 11 months ago

esau-morais commented 11 months ago

image

v1.8.0

2nthony commented 11 months ago

can you use https://stackblitz.com/ to create a repro?

in my case works correctly

esau-morais commented 11 months ago

can you use https://stackblitz.com/ to create a repro?

i'm sorry, i wouldn't get to do that once it is a private project by my company. i'll try to figure it out what could be possible cause and create a repro. thanks in advance

2nthony commented 11 months ago

I created a minimal repro here: https://stackblitz.com/edit/vitejs-vite-1ko9ut?file=package.json,src%2FApp.tsx&terminal=dev

not sure that you can edit or not, still, works.

esau-morais commented 11 months ago

the only difference we usually use a custom hook that it is reused in many files and display the toast relying on async requests, so it might be the issue, once it is probably not awaiting it to finish

2nthony commented 11 months ago

you remind me that I should add an API like destroyToast(id),

I saw you use React, so try this one https://github.com/emilkowalski/sonner, looks better.

esau-morais commented 11 months ago

closing for now as we decide to use another lib, thank you