Action works fast but modal window hangs?
does anyone have any ideas as to why this could be?
5 Replies
I have tried various solutions (cancel modal, redirect, refresh etc.) but nothing works. the modal just hangs and the job was actually finished quickly. is it better to do an asynchronous or background job?
Can you provide the whole code?
So if you remove everything after
$result = $service->myServiceClass($record->id);
the modal remains open?Yes, if i remove everything after, the modal remains open (also without modal, the action link hangs).
it hangs after this response within the myServiceClass:
But the service is ready.
Solution
I think i found it: