In this video I will introduce and help setup the popular frontend data fetchign library known as react-query.
This part of the video will be focusing on react-query useQuery and how to use them along with introducing how the query cache works.
React query documentation: react-query.tanstack.com/over...
Starter Project: github.com/leoroese/reactquer...
Finished ReactQuery Tutorial Project:github.com/leoroese/reactquer...
Timestamps
0:00 What is react query
3:10 Project Start
4:00 install and setup
6:10 QueryClientProvider
7:30 useQuery
11:50 query keys
13:25 query states
15:55 refetch on window focus
16:30 devtools
18:35 query options and cache
24:20 query with params
26:20 dependent queries
29:40 prop drilling improvements
31:20 query retries
4 июл 2024