-
|
Using the experimental_createPersister, i notice that if a ...the data is stored to the persister storage but it is also refetched unless a In the context of the experimental_createPersister, what is the difference between Many thanks! |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
|
|
Beta Was this translation helpful? Give feedback.
maxAgeis the time until data should be used from the external storage. If we restore data and see it’s older thanmaxAge, we won’t use it.staleTime, as usual, just defines if the data is fresh or stale. If it’s stale, we’ll give it to you and do a background refetch. If it’s fresh, we’ll give it to you without a refetch.