Toggle visibility on Form Field is slow
Hello,
Firstly thanks for a great product, really enjoying using it.
As per the attached video, when I'm toggling the visibility of a form field using Livewire, it is taking around 1 second for the UI to respond.
I can see that it is hitting the database each time it makes the livewire request. Although the database request is fast, it feels unnecessary when I just want to toggle the visibility.
If the livewire request can't be sped up, is it possible to toggle the visibility of the form fields using client-side Javascript?
Many thanks for your assistance
Firstly thanks for a great product, really enjoying using it.
As per the attached video, when I'm toggling the visibility of a form field using Livewire, it is taking around 1 second for the UI to respond.
I can see that it is hitting the database each time it makes the livewire request. Although the database request is fast, it feels unnecessary when I just want to toggle the visibility.
If the livewire request can't be sped up, is it possible to toggle the visibility of the form fields using client-side Javascript?
Many thanks for your assistance
Solution
Hi again, it seems the speed delay was from using the WAMP stack on windows. I moved my development to 'Laravel Sail' and the livewire round trip reduced to about 60ms.