Tanstack Query, Query Filters in 10 mins
Описание
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
Рекомендуемые видео



















