Javascript – In React Redux, how to reuse a hook that performs a fetch without needlessly performing that fetch more than once?
I have a hook that I use in my components to access an external resource that is fetched through Ajax and saved in the Redux store. What I want is for this hook to handle fetching the resource if it's…