Skip to content

Project created to exercise my learning about React Query Infinite Scroll. / Projeto criado para exercitar meu aprendizado sobre o Scroll Infinito do React Query.

Notifications You must be signed in to change notification settings

geanemr/infinite-swapi

Repository files navigation

React query / Tanstack Query Infinite Scroll

First project created on the Udemy course React Query: Server State Management in React

Learning summary:

  • React Query manages
    • pageParam for the next page to be fetched
    • getNextPageParam option
    • could be from lastPage, or allPages
    • hasNextPage
      • boolean indicating wheter pageParam is undefined
    • Component handles calling fetchNextPage
      • use hasNextPage value to determine when to stop

About

Project created to exercise my learning about React Query Infinite Scroll. / Projeto criado para exercitar meu aprendizado sobre o Scroll Infinito do React Query.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published