Solved javascript ajax:complete event does not have access to request/response

This topic has been solved
X

Xon

Guest
The event ajax:complete triggered by AJAX calls appears to be significantly broken, as the response/data/error is undefined values despite the resulting event expecting that data.

Code:

Code:
                .finally(({
                    response,
                    data,
                    error,
                } = {}) =>
                {
                    if (global)
                    {
                        XF.trigger(document, 'xf:action-stop')
                    }...

Read more

Continue reading...