Dynamic child components are broken #7866
Unanswered
CovertError
asked this question in
5. Bugs
Replies: 1 comment 7 replies
-
this not bug. you just need to set the unique key: {{-- counter.blade.php --}}
<div>
<livewire:dynamic-component :is="$current" :key="$current" />
<button wire:click="next">Next</button>
</div> here's the documentation: https://livewire.laravel.com/docs/components#adding-wirekey-to-foreach-loops |
Beta Was this translation helpful? Give feedback.
7 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Livewire version
v3.4.4
Laravel version
v10.28.0
Which PHP version are you using?
PHP 8.2
Steps To Reproduce
check this repo just click on the next button it doesn't go to the next component
Repository or Wirebox URL
https://github.com/CovertError/LivewireTest
Additional information
No response
Please confirm (incomplete submissions will not be addressed)
Beta Was this translation helpful? Give feedback.
All reactions