Skip to content

Profile Image Single Flight And Cache With Timeout

Harpo requested to merge hr/single-flight-and-cache into master

Add single flighting of requests and a cache at the highest level of usage for display profile images. This should prevent any load flash at all if an image is displayed in multiple locations on the screen or has been displayed within the timeout. This is done with a generic hook 'useObservableWithCache' which can be used to build other hooks if we want to extend this to other things.

Merge request reports