-
Notifications
You must be signed in to change notification settings - Fork 96
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
Callback executing twice? #127
Comments
I'll try to diagnose based on what you already have and lat you know in an hour. |
Quick note: this only happens when used in |
I couldn't reproduce with just |
Observation: first call goes through this in callstack:
second call does
and is not invoking a noop function. Possible explanations:
[edit]
logs "called" only once |
Ok, found it. Root cause is: if you throw inside xhr callback, the code that guarantees it runs only once does not execute. I'll have a fix for that in minutes |
Yay, nice! 😁 |
Originally reported in choojs/choo#193:
@yoshuawuyts investigated and believes
xhr
is calling the callback twice. Would it be helpful to alter the test case to demonstrate it without choo? Or is this enough to diagnose?Thanks for your help
The text was updated successfully, but these errors were encountered: