DEV Community

Discussion on: Caching API requests in JavaScript

Collapse
 
fallenstedt profile image
Alex Fallenstedt

The cache with a timer is a great idea. I will consider this approach with NgRx for our teams Angular application. Thanks for the inspiration!

Collapse
 
vinchauhan profile image
vinchauhan

I think you can do the same with sharedReplay rxjs operator.

Collapse
 
adancarrasco profile image
Adán Carrasco

I'm glad it helps Alex! Would be good if you can share your implementation. :D