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-11-30.
2 breaking2 new APIs and options1 performance1 behavior and defaults16 fixes and other
See which of these apply to your code, ranked, in your agent:
npx @unstale/cli init@react-spring/web 1022 changes
Breaking changes 2
The SpringValue-level
onChangecallback now receives anAnimationResultinstead of the raw value, soresult.valueis available mid-animation.useResize now reports border-box dimensions.
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 16
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.
Animated attributes are removed when their value is undefined.
Async script to animations now run to completion under skipAnimation.
Fixed events not firing when a SpringRef is attached manually under StrictMode.
Fixed stale updates being cleared in the useSprings layout effect.
Fixed phase synchronization for useTrail children on loop iterations.
Fixed exitBeforeEnter not working when useTransition is used with trail.
Adds support for React 19, allowing developers to use @react-spring/web with React 19.