Displaying and saving image in local storage React

Viewed 27

I'm trying to load an image from cache. It works whenever i switch between different tabs of the website, but when I reload the page, I get the default img icon instead of the actual image. This is in reactJS but The URL lifetime is tied to the document in the window on which it was created. Also, this way it's an URL, not a blob how do i do it correctly

0 Answers
Related