Redux Toolkit · Type Alias
TagDescription
RTK Query uses tags to connect query caches with mutations. When a mutation invalidates a tag provided by a query, active subscriptions can fetch fresh data.
Last updated
Syntax
providesTags: TagDescription[]
invalidatesTags: TagDescription[]In-depth API docs are only for subscribers: parameters, examples, common mistakes and interview practice.
SubscribeRelated
cache tagsqueryCacheKeyprovidesTagsinvalidatesTagsquery endpointsmutation endpoints