yoeunes / toastr

:eyes: toastr.js notifications for Laravel
https://php-flasher.io
MIT License
375 stars 52 forks source link

The Toast only is showed on next refresh #40

Closed jescampos closed 10 months ago

jescampos commented 10 months ago

Describe the bug The Toast only is showed on next refresh

To Reproduce Steps to reproduce the behavior:

  1. composer install yoeunes/toastr
  2. php artisan make:livewire test
  3. public function onTest() { toastr()->success(__('test!')); }
  4. {{ __('Test toaster') }}
  5. Nothing happens but if I reload the page in browser, the toast appears

Expected behavior The toast should show on click button

Desktop (please complete the following information):

Severity

Additional context

jescampos commented 10 months ago

ups, problems with the version 3 of livewire. Downgrade to 2.5 and works as expected!

Sorry for the inconveniente.