React Query Proof of Concept

Explore various use cases of React Query:

  1. Basic Fetch

    Demonstrating simple data fetching with React Query's useQuery hook.

  2. Mutations

    Demonstrating a post request to add a user using useMutation, and updating the user list.

  3. Pagination

    Implementing pagination using offset and limit, with keepPreviousData to prevent showing a loader.

  4. Infinite Scroll

    Implementing infinite scroll using useInfiniteQuery and React Intersection Observer to fetch the next page automatically.

  5. Data Transform

    Demonstrating data transformation from the response using the select option in React Query.

  6. Polling

    Demonstrating data polling using refetchInterval and refetchIntervalInBackground options in React Query.

...and many more. Check other use cases from sidebar.