-
hey team, I was trying to use Toaster component, as in the example, with a basic toast to be automatically dismissed with the property I have pinned my Example here: |
Beta Was this translation helpful? Give feedback.
Replies: 5 comments 5 replies
-
Hey @tomtobac - I've forwarded this onto our engineers, so they will take a look and let you know what might be going on here. |
Beta Was this translation helpful? Give feedback.
-
Hey @tomtobac - if you remove the |
Beta Was this translation helpful? Give feedback.
-
So, you have uncovered some kind of bug that we need to investigate, but the good news is, you don't need to supply an ID for it to work. The ID is optional, and useful if your application needs to keep track of a specific toast to programmatically dismiss it. It should work though according to our docs, so we'll look at it. In the meantime remove setting an id for a toast via the |
Beta Was this translation helpful? Give feedback.
-
Hi @tomtobac, Chiming in a little late here but there's no bug in the Toaster, the bug is in the code example. This codesandbox shows it working: https://codesandbox.io/s/sample-using-core-and-icons-forked-37q4o?file=/src/index.tsx The issue is that you're passing the same |
Beta Was this translation helpful? Give feedback.
-
If you update your Paste packages, it should include a fix for this. Thanks for spotting it! |
Beta Was this translation helpful? Give feedback.
So, you have uncovered some kind of bug that we need to investigate, but the good news is, you don't need to supply an ID for it to work.
The ID is optional, and useful if your application needs to keep track of a specific toast to programmatically dismiss it.
It should work though according to our docs, so we'll look at it. In the meantime remove setting an id for a toast via the
useToaster
hook and it should just work fine for your use case.