Add support for Livewire V3
In Livewire V3 the response data looks different than livewire V2. Here are the differences:
Livewire V2:
Livewire V3:
This means data_get($data, 'effects.html') will return null if livewire V3 is being used. To enable both livewire versions, I'd suggest checking if null is returned and if so, loop over the components array . If not, I'd keep the original logic.
I have verified these changes work for one or multiple updating components with livewire V3.
Hi!
I have the same problem and I confirm this fix works.
To try it, put this on your composer.json
"repositories": [
{
"type": "vcs",
"url": "https://github.com/Johannes-Werbrouck/torchlight-laravel"
}
],
then
composer require torchlight/torchlight-laravel "dev-main"
We should probably update https://github.com/torchlight-api/torchlight-laravel/blob/main/.github/workflows/tests.yml To have Livewire as a matrix too.