You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Jul 10, 2019. It is now read-only.
Lets say I have a list of todos inside my cache, and I want to keep track of a field thats numberOfTodos. Can I set something up where numberOfTodos is calculated automatically based on todos.length? The only way I see to do this currently is to store numberOfTodos as an additional field in the cache which is not ideal because the goal of any state management system should be to store the least amount of data possible and have the rest be derived.
The text was updated successfully, but these errors were encountered:
Sign up for freeto subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Is it possible to have calculated or derived data from inside the cache? Something similar to https://github.com/reduxjs/reselect?
Lets say I have a list of
todos
inside my cache, and I want to keep track of a field thatsnumberOfTodos
. Can I set something up wherenumberOfTodos
is calculated automatically based ontodos.length
? The only way I see to do this currently is to storenumberOfTodos
as an additional field in the cache which is not ideal because the goal of any state management system should be to store the least amount of data possible and have the rest be derived.The text was updated successfully, but these errors were encountered: