Archive

#tanstack-query

2 notes match these filters

  • Next.js in Practice · Part 2815 min read

    Client-Only Auth - Tokens in the Browser

    Auth handled entirely in the browser against an external API, compatible with output 'export': an AuthProvider, where to keep tokens, refresh-token rotation with a fetch wrapper and TanStack Query, client route guards, OAuth PKCE, cross-tab logout, and how it compares with server-aware auth.

  • Next.js in Practice · Part 2617 min read

    TanStack Query - Server Prefetch and Hydration

    A complete, copy-pasteable TanStack Query v5 setup for the Next.js 16.4.3 App Router - per-request clients, server prefetch with streamed pending queries, HydrationBoundary, useSuspenseQuery, mutations that invalidate both caches, Cache Components, and the pitfalls.