Update TanStack Charts through stable definition and datum identity, configure SVG motion, and preserve correctness during resize, interruption, streaming, and rolling windows. Load for reactive data, animation, reordering, enter/exit, or stale interaction state.
Installer avec Codex ou Claude Copiez ce prompt, collez-le dans Codex, Claude ou un autre assistant, puis laissez-le vérifier la page du skill et l'installer pour vous.
Une commande directe contourne le prompt de vérification. Examinez la source avant de l'exécuter.
Update TanStack Charts through stable definition and datum identity, configure SVG motion, and preserve correctness during resize, interruption, streaming, and rolling windows. Load for reactive data, animation, reordering, enter/exit, or stale interaction state.
Use trigger → inspect → decide → build → verify. Definition identity is the application update boundary; mark and datum identities determine what survives it.
Setup
Create a new definition only when captured data or visual policy changes, then update the host with that definition:
Framework adapters use their native memoization primitive around the complete definition.
Core Patterns
Stabilize three identities
Definition identity — stable until captured values change.
Mark id — stable across conditional layers and reorder.
Datum key — stable entity identity, independent of row position or mutable metrics.
Verify that focus, selection, tooltip pinning, and exit motion follow the semantic entity after reorder.
Choose the smallest motion contract
svgAnimation: true for lightweight keyed SVG tweening.
svgAnimation options for duration, easing, and reduced-motion policy.
motion() renderer only when spring continuity, a timing cascade, or rolling path behavior is part of the product contract.
No animation for static export, server output, or changes where transition would imply false continuity.
Resize animation defaults off. Keep it off for ordinary observed containers.
Bound streaming work
Keep source history outside the chart, pass a bounded visible window, preserve keys for retained samples, keep viewport state controlled, and coalesce upstream updates when only the latest state matters.
Verify interruption, not only endpoints
Apply an update during enter, update, exit, focus motion, resize, and rolling movement. The latest accepted definition must win; focused or selected semantic identity must not jump to another row.
Common Mistakes
CRITICAL Creating a fresh definition every render
Wrong: call the definition factory during every unrelated application render.
Correct: keep the definition stable until a captured row or visual-policy value changes; use the framework's native memoization primitive or update it deliberately in a vanilla owner.
Unnecessary identity changes invalidate work and can reset presentation state.
Source: definition-identity migration in CHANGELOG.md; docs/guides/dynamic-data-and-animation.md
HIGH Tension: motion continuity versus current-state correctness
Visual continuity cannot make stale state acceptable. Verify rapid retargeting, interrupted exits, active focus, and resize while motion is in flight.
See also: design-responsive-charts/SKILL.md and debug-and-verify-charts/SKILL.md
See also: build-chart-interactions/SKILL.md and coordinate-charts-with-tanstack/SKILL.md — stable mark and datum identity preserves controlled interaction across local, synchronized, and optimistic updates.