موضوعهای مرتبط
این دوره شامل
- 2 ساعت 53 دقیقه ویدیو
- 25 درس
- سطح: مقدماتی
- زبان: English
- یادمان میماند کجا بودی
- کاملاً رایگان، بدون کارت
درسها
3 بخش · 25 درس · 2 ساعت 53 دقیقه مدت کل
درسهای 1 تا 1010 درس · 1 ساعت
- React Query Tutorial - 1 - Introduction5 دقیقه
- React Query Tutorial - 2 - Project Setup11 دقیقه
- React Query Tutorial - 3 - Fetching Data with useQuery9 دقیقه
- React Query Tutorial - 4 - Handling Query Error4 دقیقه
- React Query Tutorial - 5 - React Query Devtools5 دقیقه
- React Query Tutorial - 6 - Query Cache8 دقیقه
- React Query Tutorial - 7 - Stale Time5 دقیقه
- React Query Tutorial - 8 - Refetch Defaults5 دقیقه
- React Query Tutorial - 9 - Polling3 دقیقه
- React Query Tutorial - 10 - useQuery on click4 دقیقه
درسهای 11 تا 2010 درس · 1 ساعت 19 دقیقه
- React Query Tutorial - 11 - Success and Error Callbacks6 دقیقه
- React Query Tutorial - 12 - Data Transformation4 دقیقه
- React Query Tutorial - 13 - Custom Query Hook6 دقیقه
- React Query Tutorial - 14 - Query by Id16 دقیقه
- React Query Tutorial - 15 - Parallel Queries5 دقیقه
- React Query Tutorial - 16 - Dynamic Parallel Queries6 دقیقه
- React Query Tutorial - 17 - Dependent Queries9 دقیقه
- React Query Tutorial - 18 - Initial Query Data8 دقیقه
- React Query Tutorial - 19 - Paginated Queries9 دقیقه
- React Query Tutorial - 20 - Infinite Queries10 دقیقه
چه چیزی لازم است
- به دانش قبلی نیاز نیست: دوره از صفر شروع میشود.
توضیحات
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
این دوره برای چه کسی است
- کسانی که React را از صفر شروع میکنند.
این دو مورد برداشت ما از سطح دوره است. توضیحات از خود نویسنده است.