Replies: 1 comment 1 reply
-
it's the maximum amount of time the if you want something different - v5 has a fine-grained persistence plugin to store each query separately with its own maxAge: https://tanstack.com/query/v5/docs/react/plugins/createPersister |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
After doing some tests and looking at the code, I arrived at the conclusion that each time the cache is updated, the previously persisted timestamp is updated too.
Would it make sense to add this to the documentation? I feel like this isn't obvious and would benefit others.
To add a bit of context, I was wrongly expecting the
maxAge
to be the maximum amount of time a request would be persistedBeta Was this translation helpful? Give feedback.
All reactions