DEV Community

Discussion on: Memoization in Javascript

Collapse
jdforsythe profile image
Jeremy Forsythe

Instead of keeping a progress queue, you could just store the Promise itself in the cache.

Collapse
anishkumar profile image
Anish Kumar Author

Yes. That's already covered in "Memoizing the underlying promise:" section.