Open go-sean-go opened 2 years ago
I am also facing same issue. Items behind the custom toast are not clickable.
I'm running into the same issue here now. has there been any progress around this?
Revisiting after ~6 months, maybe some kind of config param could drive this (destroyOnHide
, idk).
Revisiting after ~6 months, maybe some kind of config param could drive this (
destroyOnHide
, idk).
Agreed! We could have an extra config like mentioned.
Same issue still present. For me if I create a custom toast and call it with some text and then hide it and call it again with new text, the old toast is shown with the previous text
Describe the bug When using a custom toast component, i.e.
...the custom component is never unmounted. Specifically, React Hooks return functions are never called, i.e.
This creates various challenges in managing the lifecycle of the Toast and state.
Steps to reproduce
<Toast config={} />
Toast.show()
-LOG: mounting Toast!
Toast.hide()
- no LOG eventsExpected behavior
Toast.hide()
should unmount the component after it's off-screen, i.e.LOG: unmounting Toast!
.Screenshots n/a
Code sample See above.
Environment (please complete the following information):
Additional context n/a