Nov 2, 2026 · AI ENGINEERING Streaming an AI agent's work into React with TanStack QueryAn AI agent run is not a request, it is a stream of typed events. Here is how I render tool calls, tokens and results live in React using TanStack Query's streamedQuery, with Zustand for the UI-only state.6 MIN READ →