klis87 / redux-requests

Declarative AJAX requests and automatic network state management for single-page applications
https://redux-requests.klisiczynski.com/
MIT License
367 stars 51 forks source link

add some actions and/or auto mechanism to clean normalizedData #318

Open klis87 opened 4 years ago

klis87 commented 4 years ago

Currently there is no concept to clean normalized data, open to any ideas how to solve it.

Once idea is just to scan all queries state, get all dependencies and remove all unused. This could be slow though. Ideally this could be automatic, maybe some ref count could be done for each normalized object

zeraien commented 4 years ago

I do like the idea of the refcount, it's a proven concept...