Closed
Description
Describe the bug
The docs describe the PersistedClient
interface as
export interface PersistedClient {
timestamp: number
buster: string
cacheState: any
}
That interface is incorrect as of the newest versions.
Your minimal, reproducible example
https://tanstack.com/query/latest/docs/framework/react/plugins/persistQueryClient#persisters
Steps to reproduce
https://tanstack.com/query/latest/docs/framework/react/plugins/persistQueryClient#persisters
Expected behavior
The interface defined here is different:
query/packages/query-persist-client-core/src/persist.ts
Lines 18 to 22 in b180d83
Notice the absence of
cacheState
. Instead, there is clientState
. The docs should be updated to reflect the real interface used.
How often does this bug happen?
Every time
Screenshots or Videos
No response
Platform
Chrome
Tanstack Query adapter
None
TanStack Query version
v5.80.6
TypeScript version
No response
Additional context
No response