I'm saving a image for each of my users in my backend. I have a data fetcher component in my frontend react app that fetches data every 5 seconds from my backend and uses redux to share that data across my components. When it fetches the users it also fetches the images and sets it as a field of those users. Additionally I'm using redux-persist so that my data survives refreshes etc.
Now I have the issue that each of those user objects in the state has the base64 encoded image which especially overflows the localstorage which is used by redux-persist.
What's the best practice to fetch and cache images in react? Should every component fetch it itself instead of using redux for this?