fix(promise): don't change source promise - #30
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.
|
jmdobry
commented
Feb 27, 2017
Can you provide a little more background on the need for this change? Tests? |
delagen
commented
Feb 28, 2017
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 |
delagen
commented
Feb 28, 2017
When merge please see my (comment)[https://github.com/jmdobry/angular-cache/issues/224#issuecomment-282945075] which may be fix jmdobry/angular-cache#224 |
delagen
commented
May 17, 2017
Any news? |
alfaproject
commented
Sep 22, 2017
@jmdobry please? |: |
Don't change promise data when caching which cause angular errors in angular-cache project