The example does not seem to work anymore.
https://tanstack.com/query/latest/docs/framework/react/plugins/persistQueryClient
I get
Type {persister: Persister} is not assignable to type OmitKeyof<PersistQueryClientOptions, "queryClient">
Given the same code as from the tutorial:
// Set up persistence
const localStoragePersister = createSyncStoragePersister({
storage: window.localStorage,
})
const App: React.FC = () => (
<IonApp>
<PersistQueryClientProvider client={queryClient} persistOptions={{ persister: localStoragePersister }}
>