How to invalidate Tag with query? #2429
-
Hello. On mount the TableFactory fetches the employee table from api and add queryCacheKey to I can see that the new filtered data is fetched and stored in the redux but the useQuery from TableFactory does not care about it because I assume it is subscribed to What is recommented solution for that? Is this even doable in RTK query or do I have to handle it with just one useQuery? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
Nvm I just realised that RTK query does not have a mechanism for that. |
Beta Was this translation helpful? Give feedback.
Nvm I just realised that RTK query does not have a mechanism for that.
User has to created a separate table/filter slice and update it. Then the TableFactory will react to changes via useSelector and refetch the table a receive filtered data.