Button click not working due to frequent updates

Hi , as in this video , that's the network tab.The button is to open a modal but on click it does not respond due to that frequent network requests.Any help or anything i'm missing ? LW 3.0.10 Filament 3.0.82 . Any idea here.
Solution:
this will update the component each 50ms 🤷‍♂️ this is why you have this behavior.....
Jump to solution
9 Replies
lodeki
lodekiOP2y ago
An idea here?
lodeki
lodekiOP2y ago
Here is the behavior . Anyone who can shade light concerning this.
LeandroFerreira
share your code please
lodeki
lodekiOP2y ago
That's the page component and the relevant blade file
ChesterS
ChesterS2y ago
Can you click on one of those and check what the actual request is? If that happens on a button click, check the code for that button That toggleVisibility looks suspicious - maybe something is changing it constantly?
LeandroFerreira
check this wire:poll.50ms
lodeki
lodekiOP2y ago
Does that poll the whole page? despite the fact that it's on a label element?
Solution
LeandroFerreira
this will update the component each 50ms 🤷‍♂️ this is why you have this behavior..
lodeki
lodekiOP2y ago
My bad. Thought it would just apply on the element only rather than the whole page component. Thank you.

Did you find this page helpful?