queryCache.refetchQueries behaviour #596
-
I have the following use case:
Now suppose I open the page with ID 1 and then later I check the page for ID 2, 3, 4, 5. When I access the next ID the query for the previous become inactive and is marked for garbage collection in the state. So at this moment I have 5 queries: 1 active and 4 waiting for the period to be garbage collected. At this point if I do a mutation and refetch the query using only the prefix I've passed a custom function to queryCache.refetchQueries(query => {
return query.queryKey[0] === QUERY.MEDIA_SET && !query.state.markedForGarbageCollection;
}); Can I trust this flag? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
This is a bug. It’s also fixed in 2.0 ;) go try it out! Info in the releases section. |
Beta Was this translation helpful? Give feedback.
This is a bug. It’s also fixed in 2.0 ;) go try it out! Info in the releases section.