OpenMined/pygrid-admin

react-query usage

Closed this issue · 0 comments

tcp commented

What?

Data fetching is all over the place. Let's use react-query properly, using the useQuery and useMutation hooks for our operations. Also a good chance to revisit the configuration settings for react-query.

Breakdown

  • Change usage in users to react-query hooks
  • Replicate how we handle data in users to the other sections
  • Remove useFetch and useMutate from utils