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