Livewire update calls
Livewire update seems to call multiple times on a single page and research suggests it's not supposed to do that. This is causing overheard on servers using it. Is this normal with filament?

8 Replies
So that is assuming it's a single request. But actually you might have multiple polls setup, i.e. polling table and icons etc. So you'll need to review each update payload and see what it's calling exactly and how often? I think it's set to be 15s by default per poll for Filament's notifications 🙂
The example page that was coming from was a page that has database notifications, table filters, table sorting etc. I feel like thats a normal thing and just adding some debouncing would suffice? Just a think I've been asked to check by the boss
Only if polling is enabled on individual bits, like $table->poll('10s'); then a poll will happen
And what about forms, if I have 4 form filters (custom page), that each are live, that would be a call each as well wouldnt it?
Sorry for simple questions, Im never confident in my own knowledge 🤣
For example ^
Live would only call an update if something has changed in the form. Live basically means go fetch new data on change.
But viewing the network requests will show if its like or not.
Also worth noting on V4 you can set js action so you don't need so many serverside calls.
That should be fine going foward then. This project was started before v4 came out, so unless the client pays us to upgrade