staleTime on queries to something other than 0 to tell React Query that data loaded from storage is to be considered fresh. However, this doesn't work in practice if staleTime is configured at the query level. I've managed to get persistence working correctly when configuring the query client's default options.