-
Here is my use case : I have an application which on init fetch I initially used selectors to select the todos and the people but then I have this problem that when updating the todos cache manually, the people reference gets updated too and cause some hooks that depend on people to re-run. Is there a recommended way to solve this ? What would make more sense from my point of view is to be able to have two caches |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
I see nothing wrong with this approach:
Even if you update |
Beta Was this translation helpful? Give feedback.
I see nothing wrong with this approach:
Even if you update
people
, components that are subscribed touseTodos
should not re-render because they are only interested indata.todos
. That's whatselect
does.