Tanstack AI Core Client Persistence

Browser chat persistence on useChat / ChatClient: localStoragePersistence, sessionStoragePersistence, indexedDBPersistence. Client-authoritative (adapter, full transcript) vs server-authoritative (persistence: true, no client cache). Reload restore, pending interrupts, mid-stream rejoin with delivery durability. Use for SPA reload durability — NOT server history alone. Also covers generation hooks (useGenerateImage etc.), which take only the server-driven mode: persistence: true hydrates the last generation for the (REQUIRED) threadId from the server on mount and repaints status/result/error, nothing is cached in the browser. No extra package: the adapters ship in the framework packages.

lukasa1993 1ca9af2 3 files · 12.7 KB Updated

File contents

lukasa1993/tanstack-skills-extracted/tree/main/skills/tanstack-ai-core-client-persistence commit 1ca9af200b

Frequently asked questions

npx skillmds@latest add lukasa1993/tanstack-ai-core-client-persistence