usernotnull / tall-toasts

A Toast notification library for the Laravel TALL stack. You can push notifications from the backend or frontend to render customizable toasts with almost zero footprint on the published CSS/JS 🔥🚀
MIT License
541 stars 32 forks source link

toast wont appear until there's refresh #456

Closed erkinov-wtf closed 10 months ago

erkinov-wtf commented 10 months ago

i've configured this package and it's working fine. But if i goto other page (im using wire:navigate from livewire's 3rd version), toast wont appear until i hit refresh button. But if i delete wire:navigate it works just fine

marchershey commented 10 months ago

Just to be sure, you are adding use WireToast; at the top of your class, right? I'm on my way home now, so I'm anxious to give this a test.

erkinov-wtf commented 10 months ago

yeah i did add wireToast

erkinov-wtf commented 10 months ago

yeah, i found the issue. im using toast inside of my function and the function couldnt find the given 'id', and since i assosiated toast with this 'id' there was nothing. again some tests solved the issue)))

marchershey commented 10 months ago

Good deal. Just got home, so that means I can head to bed! :P

Glad to know you got it sorted out!