-
I have a mutation setup in my api to invalidate all the tags related to a user when they sign out.
What ever is rendered on the screen at that time is not updated. I expected the hooks data prop to be set to undefined, but it prints out the existing data. If I look into the dev tools, I can see all the queries are cleared. If I change a tab within my app and change back, the data will be cleared, but no additional requests are made or any change to the store, just a rehydration of the UI. Is this normal behaviour? How can I achieve what I am after? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
Alright well I took another look further into things and realized that there is a "currentData" prop as well as the "data" which I have always used. The currentData prop does become uninitialized which is what I was looking for. |
Beta Was this translation helpful? Give feedback.
Alright well I took another look further into things and realized that there is a "currentData" prop as well as the "data" which I have always used. The currentData prop does become uninitialized which is what I was looking for.