4 prompts
Build type-safe server actions for Next.js forms. Validation, error handling, optimistic updates, and revalidation — the modern mutation pattern.
Master React Server Components data fetching patterns. Server-only queries, streaming with Suspense, waterfall prevention, and cache strategies.
Build a full tRPC v11 setup with procedures, middleware, subscriptions, and React Query integration. Full-stack TypeScript type safety.
Implement streaming LLM responses with Server-Sent Events. Token-by-token output from API to browser with proper error handling and abort.