You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The error happens because the dispatch event is sending a string back as a parameter instead of an array.
I have submitted this PR to fix it upstream livewire/livewire#9163 but if it could be fixed in the pro version that would be really appreciated as currently it is impossible to hook into the modal.closing event and know which component has just closed.
The text was updated successfully, but these errors were encountered:
Yes the Javascript listener Livewire.on('modal.closing') expects and is able to handle receiving a string, but currently a PHP listener implementation will error if passed a string due to some unpacking happening in Livewire support files that expects there to be an array.
livewire/livewire#9163
Might give some more context to where this issue occurs in the PHP support files.
For example if you have this in your Livewire PHP class it would error before outputting the dd()
When you hook into the below dispatched Livewire event Laravel errors.
overlay-component.js
The error happens because the dispatch event is sending a string back as a parameter instead of an array.
I have submitted this PR to fix it upstream livewire/livewire#9163 but if it could be fixed in the pro version that would be really appreciated as currently it is impossible to hook into the
modal.closing
event and know which component has just closed.The text was updated successfully, but these errors were encountered: