refetchQueries does not refetch queries from other components

I have query call “contacts” in the ContactList component at route ‘/contacts’. After I added a new contact through mutation with “refetchQueries: [‘contacts’]” and redirect to the route ‘/contacts’, the ContactList is NOT updated with the new contact. Can the refetchQueries update queries and cache from different components? in this case, refetch all queries name “contacts” from different components.

1 Like

having the same issue. I need to rerun queries which return aggregated results after a mutation is complete. Also from diffenent components, running the same query with the same variables.