Skip to content

Latest commit

 

History

History
29 lines (25 loc) · 668 Bytes

File metadata and controls

29 lines (25 loc) · 668 Bytes

React Query Basics:

Table Of Content:

  • Basics:

    • Fetching data with useQuery
    • Handling Query Error
    • Using Query Cache
    • Refetch defaults and configures
    • Fetching data on click
    • onSuccess and onError callbacks
    • Creating custom query hook
  • Intermediate:

    • Query by Id
    • Parallel Queries
    • Dynamic Parallel Queries
    • Dependent Queries
    • Setting initial query data
    • Paginated Queries
    • "Infinite" Queries
    • Mutations - Sending POST Requests with data
    • Invalidating Mutations - Refetch on Success
    • Invalidating Mutations - Using the response from the POST request
  • Bonus:

    • Axios Interceptors