Redux Toolkit / RTK Query
invalidatesTags
Identifies tags affected by a mutation for cache maintenance.
Formal Syntax & Structure
react syntaxreact
invalidatesTags: [{type:"Stock",id:"LIST"}]Working Example
Example Snippetreact
invalidatesTags: [{type:"Stock",id:"LIST"}]