-
Notifications
You must be signed in to change notification settings - Fork 18
fix(promise): don't change source promise #30
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
base: master
Are you sure you want to change the base?
Conversation
Codecov Report
@@ Coverage Diff @@
## master #30 +/- ##
==========================================
+ Coverage 91.88% 92.15% +0.27%
==========================================
Files 6 6
Lines 702 701 -1
==========================================
+ Hits 645 646 +1
+ Misses 57 55 -2
Continue to review full report at Codecov.
|
Can you provide a little more background on the need for this change? Tests? |
See angular-cache tests. In case promise stored in cache it also returns as promise till it resolved. Reassign v variable in this case and return breaks original data in promise chain awaiting by angular |
See this parts of angular source
So if cache return something and it's type is In case you change data in |
When merge please see my (comment)[https://github.com/jmdobry/angular-cache/issues/224#issuecomment-282945075] which may be fix jmdobry/angular-cache#224 |
Any news? |
@jmdobry please? |: |
Don't change promise data when caching which cause angular errors in angular-cache project