Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Wrong events lifecycle in case when ajax request is not async #738

Open
iovzt opened this issue Oct 27, 2022 · 0 comments
Open

Wrong events lifecycle in case when ajax request is not async #738

iovzt opened this issue Oct 27, 2022 · 0 comments

Comments

@iovzt
Copy link

iovzt commented Oct 27, 2022

When we use container reloading with synchronous ajax request

$.pjax.reload({container: '#pjax-container', async: false});

events fire in following order:

  • pjax:beforeSend
  • pjax:beforeReplace
  • pjax:success
  • pjax:complete
  • pjax:end
  • pjax:start
  • pjax:send

I think it's unexpected behaviour.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant