LHall383/hallhome-webapp

Cache data from backend requests in redux store

Opened this issue · 0 comments

Lots of data is being re-requested, sometimes many times when we have already obtained it. Specifically the top artists/tracks are sending a request every time any form input is changed and requesting the entire list rather than just the diff.

We should be able to cache top tracks/top artists in our redux store and only fetch from the backend if the user is requesting data that we don't have yet.

Additionally with this rework, we should be able to modify the backend requests so they always pull "the next 50" at a time, caching our data in large batches.