Redux Toolkit / RTK Query
providesTags
Associates query cache entries with tags.
Formal Syntax & Structure
react syntaxreact
providesTags: [{type:"Stock",id:"LIST"}]Working Example
Example Snippetreact
providesTags: [{type:"Stock",id:"LIST"}]Associates query cache entries with tags.
providesTags: [{type:"Stock",id:"LIST"}]providesTags: [{type:"Stock",id:"LIST"}]