Replies: 1 comment 4 replies
-
You could probably do something like |
Beta Was this translation helpful? Give feedback.
4 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Notably, the following question is using RTK Query in the context of a React Native application.
We have a single screen that fetches and lists record. Users can filter those records via a modal, resulting in the following queries and subscribers after filtering data a few different ways:
Upon navigating to an individual record (thus the list screen is still mounted in our navigation stack) and making a change, all N subscribers are immediately refetched. This results in unnecessary server load for data that's no longer relevant.
I'm surprised this isn't a more common problem, but maybe our issue is unique to the nature of navigating stacks in React Native.
Has anyone else solved this? Or do you perhaps have ideas on how we should avoid querying this stale data?
Beta Was this translation helpful? Give feedback.
All reactions