npm / @react-spring/web
@react-spring/web
What changed in @react-spring/web 10, from its official release notes, upgrade guides and advisories. Sources checked 2026-10-19.
1 breaking2 new APIs and options1 performance1 behavior and defaults9 fixes and other
See which of these apply to your code, ranked, in your agent:
npx @unstale/cli init@react-spring/web 1014 changes
Breaking changes 1
The SpringValue-level
onChangecallback now receives anAnimationResultinstead of the raw value, soresult.valueis available mid-animation.
New APIs and options 2
Exposes the new phase to the useTransition render function.
Adds a reverse prop to useTransition.
Performance 1
String interpolation with large amounts of data is faster because output number parsing is cached in
createStringInterpolator.
Behavior and default changes 1
useTransition now auto-starts when its props are provided as a function.
Fixes and other changes 9
When
fromis partial, the inferred animated keys now includeto, forward props, and transition-phase values, preventing animated keys from being dropped from the result type.Adaptive precision is floored at float resolution so springs can settle when drift falls below that precision.
The parallax container is pinned to the top-left to prevent a double scrollbar.
The string interpolator is guarded against output values that contain no numbers.
Preserves velocity across retargets for decay animations.
Stops superseded loop chains when a component re-renders.
Fires when an animation is cancelled before its first frame.
Preserves decimal precision in string interpolation.
The style key regex now exact-matches transform function names.