You could use the Livewire hooks so you can add your code and be executed in every component refresh - https://livewire.laravel.com/docs/javascript#dom-morph-hooks
Nov 29, 2024
2
Level 1
Livewire 3 pagination update not longer refreshing elements
Hi guys, got a little issue since upgrading to Livewire 3.
I have a page which loops through a bunch of records and uses a script $( document ).ready(function() { for each record to generate the needed chart. Since Livewire 3 the $( document ).ready(function() { no longer works apart from the initial load of the page.
Is there another way i should now be using this to re-render/generate the charts for each record on the livewire page update
Cheers in advanced.
Please or to participate in this conversation.