Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Changing "index" along with "animateTransitions=false" still result in transition #642

Open
goffioul opened this issue Mar 12, 2021 · 0 comments

Comments

@goffioul
Copy link

I have a use case whereby a SwipeableViews component is initially rendered with animateTransitions=true and a given index. Later on, the component is re-rendered with a change of index and animateTransitions=false at the same time. The problem is that this still result in a animated transition.

From what I can see, this is due to the fact that the new transform (due to new index) is handled in UNSAFE_componentWillReceiveProps/setIndexCurrent, while animateTransitions=false is handled in render, which occurs after.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant