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!
I think you can do the same with sharedReplay rxjs operator.
I'm glad it helps Alex! Would be good if you can share your implementation. :D
We're a place where coders share, stay up-to-date and grow their careers.
We strive for transparency and don't collect excess data.