T
TanStack3y ago
fair-rose

setQueryData

Can we specify staleTime in setQueryData?
2 Replies
wise-white
wise-white3y ago
No, but you can define dataUpdatedAt to let RQ know when the data was created so that staleTime can take this into account
fair-rose
fair-roseOP3y ago
Thanks, this is helpful

Did you find this page helpful?