github pmndrs/react-spring v9.1.0

latest releases: v0.0.0-nightly-70efa0d, v0.0.0-nightly-cfc74ea, v0.0.0-nightly-743a888...
3 years ago

Features

  • We listened to the feedback people had, so whilst we encourage people to use the pattern [styles, api] = useSpring() we have aliased calling api to be api.start #1359 (thanks to @dbismut)
  • POTENTIALLY BREAKING CHANGE We've unified the return of all events onStart, onChange, onRest etc. to be the following - (animationResult, controller, item) item will only not be undefined when using useTransition.

Fixes

  • scrollTop is not set when from & to are equal #1185 (thanks @Rohanhacker)
  • skip animation with async to infinite loop #1160
  • Stop jank in animation when duration changes on SpringValue #1163

Chores

  • We have our test suite working again! hooray, it means we can review and commit PR's quicker and more effectively
  • We've updated all our examples in this repo to v9 #1386 (huge thanks to @dbismut)

Don't miss a new react-spring release

NewReleases is sending notifications on new releases.