I am pulling my hair out on this - i have. simple form that is inside of LiveWire component that when clicked, is executing the submit method 2 times in succession.
I've combed the code for anywhere that I might be calling a function more than once and am quite sure that i don't have a duplicate and that there must be something either in the submit lifecycle or something else I've missed to look into.
Any chance someone has pointer on where to look next to stop this, or how I might trace the flow inside of a livewire component?
-- HTML markup
<form method='dialog' wire:submit.prevent='save'>
... form elements ...
<button wire:click='save' >Save</button>
--- function definition in the livewire class
function save() {
dump("clicked!");
}
---- and the output when clicked
clicked!
clicked!
