Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

@tmpaul06
Created July 3, 2017 07:53
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save tmpaul06/ea0ac03ad6d1922047228d45fe341f2f to your computer and use it in GitHub Desktop.
Save tmpaul06/ea0ac03ad6d1922047228d45fe341f2f to your computer and use it in GitHub Desktop.
Remote data call cache
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