Closed danyderigon closed 5 months ago
Hi Please give me more detail about your project.
Sorry I closed this issue because my stack was completely broken ...
Nevertheless, I have a question:
The following code (provided in the readme doesn't work )
<button type="button" wire:click="$dispatch('showModal', ['alias' => 'pro.modals.restaurant.food-types-modal'])">
{{ __('Not working button') }}
</button>
But this code works
<button type="button" wire:click="$dispatch('showModal', { data: {alias:'pro.modals.restaurant.food-types-modal', params: {} } })">
{{ __('Working button') }}
</button>
Have I missed something ?
I have this problem on aliqasemzadeh/bap and I am working on it. Just wait.
@danyderigon Check update now.
I recently upgraded a Livewire 2 project to Livewire 3. I also switched from the bastinald/laravel-livewire-modals package to yours.
Since then I've had this error:
Only arrays and Traversables can be unpacked
I did, however, make a very simple modal
app/Http/Livewire/TestModal.php
resources/views/livewire/test-modal.blade.php
And I call it like that in another Livewire component :
Do you have any idea what the problem is?
The complete error :
https://flareapp.io/share/x7Xw4nwP/claim/FNle9JTUDEyBnKGaBz8BILLUrfJlMNK0