Handle persisted state - TanStack