React Query / TanStack Query: React Server State Management

所在平台: Udemy

课程主页: https://www.udemy.com/course/learn-react-query/

课程评论:没有评论

第一个写评论        关注课程

课程简介

**课程名称:** React Query / TanStack Query:React 服务器状态管理 **课程概述:** 本课程(截止 2024 年 1 月,已覆盖 React Query 版本 5)是学习 React 服务器状态管理的必备课程。React Query(又称 TanStack Query)已成为 React 应用中管理服务器状态的首选方案,因为它提供了一种智能、全面的方式,可以轻松地让你的应用与服务器数据保持同步。 如果你目前仅使用 Redux 来管理服务器数据,React Query 可以完全取代 Redux,并且在服务器数据管理方面,React Query 更加简洁强大。例如,React Query 可以: * 自动跟踪服务器查询的加载和错误状态,无需手动管理。 * 在获取最新数据时,提供已缓存的服务器数据供显示。 **课程内容结构:** 课程将从一个简单的应用开始,深入讲解 React Query 的基础知识,包括: * **Queries (查询)** * **Loading and Error States (加载和错误状态)** * **React Query Devtools (React Query 开发者工具)** * **Pagination and Pre-fetching (分页和预取)** * **Mutations (更新/变异)** 接着,我们将通过 Star Wars API 学习 **Infinite Queries (无限查询)**(即在用户接近数据末尾时获取更多数据)。 最后,我们将通过一个大型、多组件应用,更细致地学习以上内容,并深入探讨: * **Centralizing Loading and Error Handling (集中化加载和错误处理)** * **Filtering Data (数据过滤)** * **Integrating React Query with Auth (React Query 与身份验证集成)** * **Keeping Data Up to Date After Mutations (更新后保持数据最新),包括 Optimistic Updates (乐观更新)** * **Testing React Query (测试 React Query)** **课程特色:** * 提供预先编写的项目代码,专注于 React Query 的学习,节省不必要的编码时间。 * 通过定期的“代码测验”提供实践机会,确保你对概念的理解。 * 使用可视化模型解释复杂概念,帮助理解各个组件的运作。 * 主要项目使用 TypeScript 编写。 * 提供支持性的讲师,积极与学员互动答疑。 加入本课程,了解 React Query 的魅力,通过更简洁、更强大的服务器状态管理来提升你的应用!

课程评论(0条)

课程详情

Version 5 update released!As of January 2024, this course covers React Query version 5. -React Query (also called TanStack Query) has become the go-to solution for server state management in React apps, and for good reason! This smart, comprehensive solution makes it easy to keep your app up-to-date with data on the server. In fact, if you are using Redux simply to manage data from the server, React Query can replace Redux in your app. And, for server data management, React Query is much simpler and more powerful than Redux. For example, React Query: tracks loading and error states for your server queries (no need to manage that yourself!) makes cached server data available for display while you're fetching updated dataThis course starts with a simple app to learn the basics of React Query version 3: queriesloading and error statesReact Query dev toolspagination and pre-fetchingmutationsThen we take a detour with the Star Wars API to learn about Infinite Queries (getting more data just as the user has gotten near the end of the current data). Finally, we work on a large, multi-component app to learn about the above in more detail, pluscentralizing loading and error handlingfiltering dataintegrating React Query with authways to keep data up to date after mutations, including optimistic updatestesting React QueryOther notable course features:pre-written projects to use as a backdrop for React Query, so there's no time wasted writing code not relevant to the courseample opportunities to practice with periodic "code quizzes" to make sure you're understanding the conceptsvisual models for complicated concepts to help understand all of the moving piecesthe major project is written in TypeScriptsupportive instructor who loves engaging with students in Q & ACome see what the hype is about, and improve your apps with simpler, more powerful server state management!

课程标签

0人关注该课程

主题相关的课程