This repository has been archived by the owner on Dec 1, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 1.6k
multiple then not fulfilled #248
Comments
Same issue. Subsequent then's are called, however the response is undefined for all but the first then. |
confirmed here. |
This is implemented intentionally, currently the promise chain does not break. Means your example code will actually work like this. Since the first var promise = Vue.Promise.resolve(1);
var x1;
promise.then(function (x) {
x1 = x;
}).then(function (x2) {
console.log(x1 === x2, x1, x2); // x2 is undefined
}); |
This is useful, but sometimes I need to do some caching; |
steffans
added a commit
that referenced
this issue
Jun 24, 2016
I removed this in the develop branch, will be released with v0.9 |
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
The text was updated successfully, but these errors were encountered: