Laravel livewire - System failed to continue execution after validation (success or not)

90
August 21, 2021, at 01:00 AM

Inside my livewire blade file I have this form, and inside this form there is a button:

<x-jet-button type="button" wire:click="myFunction" wire:loading.attr="disabled">
    Validate First
</x-jet-button>

In my livewire component I have this function defined:

public function myFunction() {
      $result = $this->validate();
      ...
}

When clicked, it stopped executing immediately after $result = $this->validate() (ie. ... never get called), whether the validation success or not. I have to move $this->validate() to somewhere else (ie. updated function) so that ... can continue to execute. Why?

READ ALSO
failed to set the attribute in javascript

failed to set the attribute in javascript

I have a web app, frontend using HTML5, backend using Django

47
Creating a performant image skeleton with next/image

Creating a performant image skeleton with next/image

I'm trying to implementing a performant skeleton loader for Nextjs's image component

98
Python plotly-dash @app.callback()-function isn&#39;t triggered. What should I do?

Python plotly-dash @app.callback()-function isn't triggered. What should I do?

I am programming a multi-page app with Python dash-plotlyMy app

116