Something went wrong. Try again.
Something went wrong. Try again.
preloading-example PRODUCT.md
## Product Context
### Product
**Name**: Prefetching Patterns
**Register**: product
**Category**: Interactive educational blog and developer learning lab
**Current stack**: TanStack Start, TanStack Router, TanStack Query, TanStack DB, Electric SQL, Tailwind CSS v4, React 19, Drizzle, Vite+
This is a chaptered, interactive educational blog for understanding how different data loading and prefetching strategies change the feel of a React application. Each article should pair a written explanation with a working console so readers can compare baseline loading, progressively richer preloading, and a local-first synced-data approach in the same product.
The app uses Pokemon data as a familiar, low-friction dataset so the user can focus on route loaders, cache state, pagination, search, live queries, and synced collections rather than domain modeling.
### Users
**Primary audience**: Developers learning TanStack Router, Query, DB, Start, and Electric SQL patterns.
**Secondary audience**: Teachers, workshop leads, and technical writers who need a concrete reference implementation.
**Context**: Focused learning sessions, tutorial follow-alongs, implementation reference, workshops, and chapter-by-chapter article exploration.
**Job to be done**: Compare no preloading against increasingly capable preloading strategies, understand when data is fetched or reused, then see how local-first synced collections change the model again.
### Current Experience
The home page introduces the learning sequence and routes users into numbered chapters. The global header is a sticky, horizontally scrollable terminal-style nav with numbered route names and a three-state theme toggle.
The implemented examples are:
1. **basic**: Baseline route with no prefetching.
2. **preloading**: Route-level data prefetching.
3. **intent-preloading**: Hover and focus preloading through navigation intent.
4. **pagination**: Adjacent page preloading for previous and next Pokemon pages.
5. **filters**: Submitted name filtering with search params an…