secondsky/claude-skills / plugins/tanstack-start/skills/tanstack-start
tanstack-start
VerifiedTanStack Start (RC) full-stack React with server functions, SSR, Cloudflare Workers. Use for Next.js migration, edge rendering, or encountering hydration, auth, data pattern errors.
| File | Kind | Size |
|---|---|---|
| SKILL.md | skill md | 6.4 KB |
| references/cloudflare-hosting-and-env.md | markdown | 2.6 KB |
| references/devtools-and-llm-support.md | markdown | 1.2 KB |
| references/execution-and-auth.md | markdown | 2.1 KB |
| references/navigation-and-preloading.md | markdown | 1.6 KB |
| references/quickstart-and-layout.md | markdown | 2.8 KB |
| references/rendering-modes.md | markdown | 2.0 KB |
| references/routing-and-data-loading.md | markdown | 2.3 KB |
| references/server-functions-and-middleware.md | markdown | 2.9 KB |
| scripts/bootstrap-cloudflare-start.sh | script | 1.1 KB |
references/navigation-and-preloading.md
View on GitHub# Navigation, Preloading, and UX
## Link Options
- Use `<Link preload="intent">` to preload on hover/focus; switch to `preload="render"` for above-the-fold routes or `preload={false}` for rarely visited pages.
- Pass `resetScroll`/`replace`/`target` only when needed; defaults keep back/forward UX predictable.
- Build custom links with `router.buildLink()` to reuse the same preloading semantics across design systems.
## Programmatic Preloading
- Warm caches before navigation:
```ts
router.preloadRoute({ to: '/products/$id', params: { id }, search: { preview: true } })
```
- Pair with `defaultPreloadStaleTime` to avoid refetch storms when hovering multiple links quickly.
## Route Masking
- Keep canonical URLs while displaying masked, user-friendly paths (`mask: { to: '/p/$id' }`); masks update the address bar without changing the matched route.
- Good for A/B or marketing URLs that should still resolve to canonical data paths.
## Navigation Blocking
- Use `useBlocker` or `router.block()` inside forms to guard unsaved changes; unblock after save or explicit discard.
- Provide a confirm dialog and redirect target for failed saves to avoid dead-end states.
## Scroll Restoration
- Enable `scrollRestoration` globally, then override per route for long lists (e.g., restore previous position on back/forward but scroll to top on fresh navigation).
- Combine with `pendingComponent` to avoid layout jumps while data loads.
## Document Head
- Set `head` per route using loader data for titles/meta; avoid reading `window` directly to keep SSR safe.
- Keep head updates deterministic (no `Date.now()`), or move non-deterministic pieces behind `ssr: 'data-only'` routes.
Related skills
| Skill | Stars | Updated | Works with | Status | Install |
|---|---|---|---|---|---|
| slack-gif-creatoranthropics/skillsKnowledge and utilities for creating animated GIFs optimized for Slack. Provides constraints, validation tools, and animation concepts. Use when users request animated GIFs for Slack like "make me a GIF of X doing Y for Slack." | Stars: 197k | Updated | Claude CodeCodex | Verified | Install |
| ponytailDietrichGebert/ponytailLazy senior dev mode for any coding task: the smallest change that fully solves it, and a reply a busy human understands in one read. | Stars: 194k | Updated | Claude CodeCodex | Verified | Install |
| ponytail-debtDietrichGebert/ponytailHarvest every shortcut: comment into one debt ledger, so deferrals get tracked instead of forgotten. One-shot report. | Stars: 194k | Updated | Claude CodeCodex | Verified | Install |
| ponytail-debtDietrichGebert/ponytailList every `shortcut:` comment (and older `ponytail:` ones) as a debt ledger. One-shot report, changes nothing. Use for "ponytail debt", "what did ponytail defer", "list the shortcuts", /ponytail-debt. | Stars: 194k | Updated | Claude CodeCodex | Verified | Install |