ToastContainer error when rendering dynamic Toast components #838
-
Hi, I'm attempting to setup a react context for Toasts; we want to be able show multiple toasts that persist across route changes. The issue I'm running into is where the Demo is here: https://codesandbox.io/s/great-ellis-spzpx?file=/src/ToastContext.tsx I've got a few static toasts in a ToastContainer and thats just fine. Using the add toast button will unleash the error. I am using ToastContainer within the render function of ToastContext.tsx as the parent of the rendered toasts. Is this a proper way of setting this up or do you advise another method? Thanks! |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
Hi @crubio Thanks for posting this issue/question. That issue is a known bug in an underlying part of our ToastContainer. We have a ticket in our current sprint to get it fixed. We'll make sure to update you when the fix has been released. Let us know if you have any other questions. |
Beta Was this translation helpful? Give feedback.
Hi @crubio
Thanks for posting this issue/question. That issue is a known bug in an underlying part of our ToastContainer. We have a ticket in our current sprint to get it fixed. We'll make sure to update you when the fix has been released.
Let us know if you have any other questions.