Skip to content
Discussion options

You must be logged in to vote

the cache is just an object in javascript. We distribute it via react context through the QueryClientProvider. Infinite CacheTime means we'll never remove it from the cache. So the data will stick around until you unmount your QueryClientProvider.

Usually, in a single page application, you'll only have one QueryClientProvider at the top of your App. So that cache entry will stick around for the lifetime of your app.

I'm not really sure what a "memory leak" would be for you?

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@mucahidyazar
Comment options

Answer selected by mucahidyazar
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants