4 ms·
Shoudn't you store the initial fooPromise and use it instead? var ensureFooEquivalent = getFoo();
by Guillaume86 11y ago
Shoudn't you store the initial fooPromise and use it instead?
var ensureFooEquivalent = getFoo();
- Bahamut 11y agoSometimes the data you want is already available - no need to make an extra request in those cases.