Open milly-code opened 1 year ago
Hey! This might be related to updateHeight
not being reported correctly. Can you double check if this gets called correctly?
Thanks for the quick reply @timolins
After debugging I noticed no toast object is being added to the toasts
list in useToaster
, so nothing is mapped for the updateHeight
to be called.
Whenever I import
toast
from"react-hot-toast/headless"
and calltoast('some message here')
, I don't see a toast message.Here's my code:
Sample.tsx
where thetoast
function is used.Notifications.tsx
Toasty.tsx
This is what my
App.tsx
looks like where I added theNotifications
componentNote
If I manually add a toast in the
Notifications.tsx
, it does render visible. See example below