Skip to content

Debugging FAQ

Marcus edited this page Sep 11, 2018 · 2 revisions

I'm using axios or another JS request library that isn't Ajax and it isn't working!

You need to send a Javascript-Request header with a value of true along with the request. I had to make the actions work for both regular requests and Javascript requests, and there was no real way of identifying a non ajax JS request, so you have to tell it with a header.

Getting the response of an action

In twig after you have just submitted an action, you can use the craft.waitwhile.getSession variable to read the previous response.

Pull requests are welcome.

Read the debugging FAQ before submitting an issue.

Clone this wiki locally