Action is always loading when running a laravel process
The main goal is to run a laravel process that starts a local game server. However, after running the process (and while its running) the action is always "loading" as shown in the picture. I understand why this is happening, but I was wondering if there was a way to get around it? After clicking launch, it should start the process and stop loading.
Here is my code so far
Solution:Jump to solution
I would look into jobs and listeners and how you can leverage them with reverb.
6 Replies
Why do you think this is happening?
From what I understand, the ->action() creates a lifecycle
And as long as the process is running, the lifecycle is active
So until it ends, it will "load"
So you’re starting a long running process and expecting livewire to return a signal that the process is done even though it isn’t.?
Sounds like a use case for reverb and / or websockets to me instead of livewire.
Hmm, but filament uses livewire anyways. How can I avoid livewire?
If the server starts correctly with no errors, then is should stop loading.
Solution
I would look into jobs and listeners and how you can leverage them with reverb.
thanks