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