Skip to content

secondsky/claude-skills / plugins/tanstack-start/skills/tanstack-start

tanstack-start

Verified

TanStack 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.

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.
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: 197kUpdated Claude CodeCodexVerifiedInstall
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: 194kUpdated Claude CodeCodexVerifiedInstall
ponytail-debtDietrichGebert/ponytailHarvest every shortcut: comment into one debt ledger, so deferrals get tracked instead of forgotten. One-shot report.Stars: 194kUpdated Claude CodeCodexVerifiedInstall
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: 194kUpdated Claude CodeCodexVerifiedInstall