What this book covers
Chapter 1, What Is State and How Do We Manage It?, covers a basic definition of what state is and gives a historical overview of how we manage it.
Chapter 2, Server State versus Client State, splits the state concept and helps us understand why it is so important to manage the server state independently of the client state.
Chapter 3, React Query – Introducing, Installing, and Configuring It, introduces React Query and provides the means to add it to your applications.
Chapter 4, Fetching Data with React Query, covers what you need to leverage the useQuery
custom hook to fetch your server state.
Chapter 5, More Data-Fetching Challenges, expands on the concepts introduced in the previous chapter and covers how you can leverage useQuery
to deal with other data fetching challenges.
Chapter 6, Performing Data Mutations with React Query, covers what you need to leverage the useMutation
custom hook to perform changes on the server state.
Chapter 7, Server-Side Rendering with Next.js or Remix, covers leveraging React Query with server-side frameworks such as Next.js or Remix.
Chapter 8, Testing React Query Hooks and Components, provides you with practices and recipes you can apply to your application to test your components and custom hooks that leverage React Query.
Chapter 9, What Changes in React Query v5?, is a bonus chapter that covers the changes that the v5 version of TanStack Query introduces to React Query and the things you need to update your application.