Explore related topics
This course includes
- 2h 53m of video
- 25 lessons
- Level: Beginner
- Spoken in English
- Your place is remembered
- Free in full, no card
Lessons
3 sections · 25 lessons · 2h 53m total length
Lessons 1 to 1010 lessons · 1h
- React Query Tutorial - 1 - Introduction5m
- React Query Tutorial - 2 - Project Setup11m
- React Query Tutorial - 3 - Fetching Data with useQuery9m
- React Query Tutorial - 4 - Handling Query Error4m
- React Query Tutorial - 5 - React Query Devtools5m
- React Query Tutorial - 6 - Query Cache8m
- React Query Tutorial - 7 - Stale Time5m
- React Query Tutorial - 8 - Refetch Defaults5m
- React Query Tutorial - 9 - Polling3m
- React Query Tutorial - 10 - useQuery on click4m
Lessons 11 to 2010 lessons · 1h 19m
- React Query Tutorial - 11 - Success and Error Callbacks6m
- React Query Tutorial - 12 - Data Transformation4m
- React Query Tutorial - 13 - Custom Query Hook6m
- React Query Tutorial - 14 - Query by Id16m
- React Query Tutorial - 15 - Parallel Queries5m
- React Query Tutorial - 16 - Dynamic Parallel Queries6m
- React Query Tutorial - 17 - Dependent Queries9m
- React Query Tutorial - 18 - Initial Query Data8m
- React Query Tutorial - 19 - Paginated Queries9m
- React Query Tutorial - 20 - Infinite Queries10m
What you need
- No prior experience: this course starts from zero.
Description
React Query is a library for fetching data in a React application. Since React is a UI library, there is no specific pattern for data fetching. What we typically do is make use of useEffect hook for data fetching and useState hook to maintain component state like loading, error or resulting data. If the data is needed throughout the app, we tend to use state management libraries. But what is important to note here is that most of the state management libraries are good for working with client state. State like theme for the application or whether a modal is open. They are not great for working with asynchronous or server state. This is because server state is very different to client state. Client state is persisted in your app memory and accessing or updating it is synchronous. Server state on the other hand is persisted remotely, in a database perhaps and requires asynchronous APIs for fetching or updating. Also, server state unlike client state has shared ownership. Data can be updated by someone else without your knowledge which can quickly lead to UI data that is not in sync with the remote data. It becomes even more challenging when you have to deal with caching, deduping mu
Who this course is for
- Anyone starting React from nothing.
Those two are our reading of the course's level. The description is the author's own.