Город МОСКОВСКИЙ
00:12:00

Tanstack Query, Query Filters in 10 mins

Аватар
React Опытные Советы
Просмотры:
33
Дата загрузки:
28.11.2023 13:26
Длительность:
00:12:00
Категория:
Обучение

Описание

Hi all, in this tutorial we will see how we can use Query Key Filters in Tanstack Query or React Query to match certain queries and do operations on them like cancel, invalidate, refetch queries using the useQueryClient Hook.

We will look at how we can match queries using query key, whether a query is stale or not, whether a query is active, inactive, whether a query is fetching, idle, or paused, and finally whether a query satisfies a predicate function

FetchStatus tutorial: https://www.youtube.com/watch?v=hd2F46ttt1U
Code: https://github.com/usmanabdurrehman/React-tutorials/tree/TanstackQueryQueryKeyFilters

00:00 Intro
01:45 Matching with Query Key
02:45 Matching based on if a query is active or inactive.
04:49 Matching based on fetch status
08:46 Matching based on a predicate filter function
11:15 Outro

Рекомендуемые видео