Created
July 3, 2017 07:53
-
-
Save tmpaul06/ea0ac03ad6d1922047228d45fe341f2f to your computer and use it in GitHub Desktop.
Remote data call cache
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var promise = remoteDataCall(); | |
promise.then(function (result) {}); | |
promise.then(function (result) {}); | |
// Same result as above without executing `remoteDataCall` again. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment