The easy way to remove a query cache after unmounting #2422
Unanswered
stsiushkevich
asked this question in
Ideas
Replies: 1 comment 6 replies
-
If you set cacheTime to 0, the entry will be removed from the cache if the last observer unmounts. If you only have one observer, that will be equal to what you are looking for I believe. |
Beta Was this translation helpful? Give feedback.
6 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Is there any flag to remove a query cache after unmouting?
Today I can use remove() or cache.removeQuery() methods after unmouting my component. But I want to to it easily. For example:
Is my idea rational?
Beta Was this translation helpful? Give feedback.
All reactions