Including a unique value, like now() or Str::random(), in the Blade template of a Livewire component is a great way to check if that part of the DOM is getting re-rendered
- ·
- Telegram
- ·
- Newsletter
A quick and easy way to check if @LaravelLivewire components are re-rendering when you don't want/need them to.
Add now() or now()->timestamp to your component template. The time value will increment if there's a re-render side effect!