Powiązane tematy
Kurs zawiera
- 2 godz. 53 min wideo
- 25 lekcji
- Poziom: Początkujący
- Język: English
- Pamiętamy, gdzie skończyłeś
- W całości za darmo, bez karty
Lekcje
3 sekcji · 25 lekcji · 2 godz. 53 min łączna długość
Lekcje 1–1010 lekcji · 1 godz.
- React Query Tutorial - 1 - Introduction5 min
- React Query Tutorial - 2 - Project Setup11 min
- React Query Tutorial - 3 - Fetching Data with useQuery9 min
- React Query Tutorial - 4 - Handling Query Error4 min
- React Query Tutorial - 5 - React Query Devtools5 min
- React Query Tutorial - 6 - Query Cache8 min
- React Query Tutorial - 7 - Stale Time5 min
- React Query Tutorial - 8 - Refetch Defaults5 min
- React Query Tutorial - 9 - Polling3 min
- React Query Tutorial - 10 - useQuery on click4 min
Lekcje 11–2010 lekcji · 1 godz. 19 min
- React Query Tutorial - 11 - Success and Error Callbacks6 min
- React Query Tutorial - 12 - Data Transformation4 min
- React Query Tutorial - 13 - Custom Query Hook6 min
- React Query Tutorial - 14 - Query by Id16 min
- React Query Tutorial - 15 - Parallel Queries5 min
- React Query Tutorial - 16 - Dynamic Parallel Queries6 min
- React Query Tutorial - 17 - Dependent Queries9 min
- React Query Tutorial - 18 - Initial Query Data8 min
- React Query Tutorial - 19 - Paginated Queries9 min
- React Query Tutorial - 20 - Infinite Queries10 min
Czego potrzebujesz
- Bez wcześniejszego doświadczenia: kurs zaczyna od zera.
Opis
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
Dla kogo jest ten kurs
- Dla zaczynających React od zera.
Te dwa punkty to nasz wniosek z poziomu kursu. Opis należy do autora.