Component not executed

Hi,

If I use blade if stamen in component, this is not rendered.
Example

<livewire:usersearch filter="client" emit="clientUpdate" @if($mode=="edit")idinit="{{$client}}"@endif >

I see in HTML code

<livewire:usersearch filter="client" emit="clientUpdate" idinit="2">

If I remove blade code, component work, and if I hard code idinit=“2”, work as expected.

What if wrong using blade code in livewire component… ?

Thanks.

Please checkout this addition to Laravel 7.9. It could be what you need

Have you tried :idinit?

<livewire:usersearch filter="client" emit="clientUpdate" @if($mode=="edit"):idinit="{{$client}}"@endif >