Тёмный

React Query Tutorial with Typescript | Part 3 -- QueryClient 

CodeDunks
Подписаться 7 тыс.
Просмотров 3,8 тыс.
50% 1

In this video, I will be talking about the query cache. Most importantly how to manipulate the query cache using the query client with things such as query invalidation filters and optimistic updates.
QueryClient Documentation: react-query.tanstack.com/refe...
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 Intro
2:20 invalidateQueries
4:50 invalidate filters
7:00 dynamic parallel queries
8:50 exact invalidation
9:10 predicate invalidation
12:50 optimistic updates

Опубликовано:

 

4 июл 2024

Поделиться:

Ссылка:

Скачать:

Готовим ссылку...

Добавить в:

Мой плейлист
Посмотреть позже
Комментарии : 8   
@sreekumarmenon
@sreekumarmenon 3 года назад
thanks for the awesome videos, easy to understand!
@riendlyf
@riendlyf Год назад
subscribed!
@danielnguyen825
@danielnguyen825 2 года назад
This video is very useful, thanks a lot!
@binov5012
@binov5012 2 года назад
Thanks 🙏 awesome videos!
@murodjonazamov3951
@murodjonazamov3951 2 года назад
cool
@anhanh-pc6ik
@anhanh-pc6ik 2 года назад
why do we need to pass enable = true in parallel queries (line 48) ,i thought when we call queryClient.invalidateQueries() all of queries key will stale, and enable will be true by default,
@CodeDunks
@CodeDunks 2 года назад
I believe I did this just to be able to show you guys the effects
@anhanh-pc6ik
@anhanh-pc6ik 2 года назад
@@CodeDunks that mean we need enable = true to make invalidateQueries work or what ,i just wonder 🤔