Bug: an issue with toasts description
hesamhoseinkhani opened this issue Β· comments
Describe the feature / bug π:
You can't just pass a custom component as a description to your toast.
Steps to reproduce the bug π:
- Try to create a toast and pass a custom component to it's description, it will show you [object object]
Something like this:
toast("toast name", { description: })
The thing is that it just accepts descriptions as strings whether an actual string or an element inside the string, we can pass the custom components to it via renderToString function in react but I don't really feel good about using that in this case...
@emilkowalski Any thoughts?
As far as I can see, this has already been fixed by #387 but is yet to be released.