Delay with Toggle when is live()
Hi guys!
I have an issue with 2 toggles the first one is live() with afterStateUpdated() method and second one should be switched true by clicking the first one and otherwise when the second one is switched true and clicking on it should switched to false and switch the first toggle to true, and for this issue I'm facing delay more than 1 sec please any help for this??
2 Replies
Any solution please?
Can anyone guys help?
Nothing at all please any help for this if is not please say anything so I can close it.
Bro, what exactly is the problem? You can't just keep asking for help without any more details.
At least share the code for the toggles that have the problem.
That bein said, this is how
->live()
works - it sends a request to the backend, and updates the state. If your connection is slow, it will be slow. If you want this to be instant, you probably need to handle it client-side
Look at this https://filamentphp.com/docs/4.x/forms/overview#preventing-the-livewire-component-from-rendering-after-a-field-is-updated
FFS this is not an AI prompt, learn how to ask questions on the internet