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

SwitchTransition infinite loop between exit and enter state #866

Open
floxrot opened this issue Nov 12, 2022 · 1 comment
Open

SwitchTransition infinite loop between exit and enter state #866

floxrot opened this issue Nov 12, 2022 · 1 comment

Comments

@floxrot
Copy link

floxrot commented Nov 12, 2022

What is the current behavior?

As soon as I insert a into a component, once it is activated, an infinite loop is created between classes named enter and exit. It jumps back and forth between the two classes without any intermediate stages.

What is the expected behavior?

No infinite loop between enter and exit

Could you provide a CodeSandbox demo reproducing the bug?

codesandbox with issue

@AmrAhmedA
Copy link

@floxrot you have to provide key prop to the CssTransition to prevent infinite loop for your transitions.
key ={isSuccessful? "trueText": "notTrueText"}

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

2 participants