Reading and updating fetched items from different cashe keys in several components #1092
Unanswered
tomaszczura
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi
We have an app which displays some kind of items in several places in the app at one time - e.g. ItemA can be displayed in two sections of navigation and its details in the grid view in the main content of the app. Each of these lists may be a bit different, thus we use different params for requests, and different cache keys to store items list. That works, but here is the problem - we can update ItemA title in one of these lists, and how can we reflect that change it in all other places? We do not know each key where the item appears (e.g. because some lists are paginated, so we do not know
cursor
), so we can not simplymutate
, unless we iterate over all cache keysBeta Was this translation helpful? Give feedback.
All reactions