React-spring: reset and initial props doesn't work with useTransition

Created on 11 Jan 2019  路  2Comments  路  Source: pmndrs/react-spring

Seems like reset and initial props doesn't work with useTransition as expected. Try to comment out it here. I guess, bug with initial prop related to wrong initial state at this line https://github.com/react-spring/react-spring/blob/f938b667860da1ace2f13523ea7aae5a9ba2a320/src/hooks/useTransition.js#L146

bug

Most helpful comment

Yep, saw this today, too, it's the reverse. I am re-writing hooks from the ground up currently, there will be a big update soon. They're all still experimental for now, but the upcoming version will make them official with docs, a proper api and all these little bugs hopefully fixed.

All 2 comments

Yep, saw this today, too, it's the reverse. I am re-writing hooks from the ground up currently, there will be a big update soon. They're all still experimental for now, but the upcoming version will make them official with docs, a proper api and all these little bugs hopefully fixed.

Fixed in #632 馃帀

When reset is true, all items will repeat their enter transition.

The initial transition never repeats, even if reset is true.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

cmmartin picture cmmartin  路  3Comments

MaximeDenuit picture MaximeDenuit  路  4Comments

sakhisheikh picture sakhisheikh  路  3Comments

fortezhuo picture fortezhuo  路  3Comments

mkhoussid picture mkhoussid  路  3Comments