I’m attempting to recreate similar fetch/loading as WithPagination where livewire seemingly sends an ajax request, grabs the html, and places it on page. It all seems like magic and I was wondering if anyone knows how it’s executing it behind the scenes.
I’ve looked at the code and it looks like the wire:click just changes the public page number on the WithPagination trait. What’s picking up the change and then executing from there? Is it javascript listening somewhere?
Thanks in advance for the help. I’m happy to keep digging into the code if anyone can give me any pointers.