What seems to be the problem:
Building a new Laravel 7 project with Livewire a AlpineJs the new method for loading a component:
<livewire:frontend.account.profile-update>
behaves as expected and loads correctly.
Adding adding a variable stops it working :
<livewire:frontend.account.profile-update :logged_in_user="$logged_in_user">
Loads the component without and reference to the variable.
The previous method of loading a component:
@livewire('frontend.account.profile-update', ['logged_in_user' => $logged_in_user])
Load as expected with the variable data available.
Steps to Reproduce:
Please see below
Are you using the latest version of Livewire:
livewire v1.0.12
laravel/framework v7.5.2
alpinejs v2.2.5
Do you have any screenshots or code examples:
<div x-show="tab === 'update'" class="relative">
*{{--the code below works as expected--}}*
@livewire('frontend.account.profile-update', ['logged_in_user' => $logged_in_user])
*{{--the code below will not work--}}*
<livewire:frontend.account.profile-update :logged_in_user="$logged_in_user">
</div>
I will continue to use the older load syntax where necessary but wondered if anyone has see something similar?