dano-inc / react-query-helper

A helper library to use react-query more efficient, consistency

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

0.1 Roadmap

iamchanii opened this issue · comments

It should be providing a method to create a type-safe hook:

  • useQuery
  • useInfiniteQuery
  • useIsFetching

It should be supporting QueryClient's methods what related with query:

  • queryClient.fetchQuery
  • queryClient.fetchInfiniteQuery
  • queryClient.prefetchQuery
  • queryClient.prefetchInfiniteQuery
  • queryClient.getQueryData
  • queryClient.getQueriesData
  • queryClient.setQueryData
  • queryClient.getQueryState
  • queryClient.setQueriesData
  • queryClient.invalidateQueries
  • queryClient.refetchQueries
  • queryClient.cancelQueries
  • queryClient.removeQueries
  • queryClient.resetQueries
  • queryClient.isFetching

Documentation:

  • More examples with CSB

Dogfooding:

Actually, this library was a part of our project code. as soon as possible, I will replace that codes with this library and want to check production-ready.

  • Add some method that related with infinite query
    • getInfiniteQueryData
    • getInfiniteQueriesData
    • setInfiniteQueryData
    • setInfiniteQueriesData
  • Migrate our project code (1/2)
  • Migrate our project code (2/2)
  • Reduce size?