colonyDapp icon indicating copy to clipboard operation
colonyDapp copied to clipboard

Update `useContributorsAndWatchersQuery` fetch policy

Open willm30 opened this issue 3 years ago • 1 comments

Description

This PR updates the fetch policies of two instances of the useContributorsAndWatchersQuery, one in the ColonyMembers page component and the other in the ColonyMembers sidebar on the ColonyHome page.

This is so that when you interact with the address book, e.g. by adding a new user to it, the next time you navigate to one of these components, the query will fetch over the network and therefore return updated data, instead of fetching from the cache and returning the previous query result (which has not been updated). The advantage of this is that the user doesn't have to refresh the browser to see the latest members data.

Changes 🏗

  • useContributorsAndWatchersQuery fetch policy in ColonyMembers page component and sidebar component in ColonyHome

Resolves #3747

willm30 avatar Aug 15 '22 14:08 willm30

CLA assistant check
Thank you for your submission! We really appreciate it. Like many open source projects, we ask that you sign our Contributor License Agreement before we can accept your contribution.
You have signed the CLA already but the status is still pending? Let us recheck it.

CLAassistant avatar Jan 25 '24 19:01 CLAassistant