Prevent an action from sending a backend request

Hi. I've got an action that's just used for firing some JS (which I've added using x-on:click in extraAttributes ). I need to stop it sending a request to the backend. Any ideas how I could do that?
Solution:
Could also just disable the wire:click with -> livewireClickHandlerEnabled(false)
Jump to solution
3 Replies
awcodes
awcodes10mo ago
Try ->alpineClickHandler() instead of exatraAttributes() that will disable the wire:click
Solution
awcodes
awcodes10mo ago
Could also just disable the wire:click with -> livewireClickHandlerEnabled(false)
binaryfire
binaryfireOP10mo ago
Nice thank you. Both of those will come in handy.
Want results from more Discord servers?
Add your server