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

endless loop inside onFlipStart #63

Open
newkolay opened this issue Apr 10, 2018 · 4 comments
Open

endless loop inside onFlipStart #63

newkolay opened this issue Apr 10, 2018 · 4 comments

Comments

@newkolay
Copy link

Hello, help me please with the function onFlipStart, i don't understand the scenario when it could be implemented, because it seems it's not possible to call setState in it. (because of endless loop).
I'm trying to hide the content of the card when the flip starts because my two sides have different heights.

@hmost1
Copy link

hmost1 commented Jan 6, 2019

I have't figured out why this happens, but to get around it I managed the "flip" parameter manually which seems to halt the infinite loop.
E.g:

<FlipCard
        flip={this.state.clickedA}
        onFlipStart={this._flipClickedA}
>

@xumes
Copy link

xumes commented Jan 23, 2019

I am having this issue too and the workaround did not work for me.
By the way, my FlipCard is inside a Swiper component.

@pckz
Copy link

pckz commented Jul 25, 2019

hey @kolya3001 and @xumes how do you solve it? I have the same problem. Thanks

@juliolena25
Copy link

Inside of library, on FlipCard.js, remove componentDidUpdate and it works properly, I'm gonna make a pull request for that

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

5 participants