F
Filament9mo ago
lodeki

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
lodeki9mo ago
An idea here?
lodeki
lodeki9mo ago
Here is the behavior . Anyone who can shade light concerning this.
LeandroFerreira
LeandroFerreira9mo ago
share your code please
lodeki
lodeki9mo ago
That's the page component and the relevant blade file
ChesterS
ChesterS9mo 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
LeandroFerreira9mo ago
check this wire:poll.50ms
lodeki
lodeki9mo ago
Does that poll the whole page? despite the fact that it's on a label element?
Solution
LeandroFerreira
LeandroFerreira9mo ago
this will update the component each 50ms 🤷‍♂️ this is why you have this behavior..
lodeki
lodeki9mo ago
My bad. Thought it would just apply on the element only rather than the whole page component. Thank you.