question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

On chrome mobile after 2 animations with many leaves then react-flip-move gets stuck in state where many nodes hang about that should have been removed.

See original GitHub issue

Using a recent version of mobile chrome go to kchomp.co and touch the worldnews link at the top followed by the news link as quickly as possible.

From here if you click the worldnews link again you should see that a bunch of the nodes related to news remain in the DOM. I verified with remote debugging that these nodes are no longer in props.children. From here clicking further links in the header leads to more and more HTML elements being left around. It seems that react-flip-move has gotten into a state where it can no longer remove needed elements.

I have been unable to replicate the issue on desktop chrome, it seems specific to mobile chrome. Using the latest react-flip-move (2.7.3).

Issue Analytics

  • State:open
  • Created 7 years ago
  • Reactions:4
  • Comments:53 (13 by maintainers)

github_iconTop GitHub Comments

3reactions
Hypnosphicommented, Jun 25, 2017

There is a chance it could be solved if we would store styles in state and pass it to react children instead of applying directly. In that case the styles would be preserved during rerender. But this would mean a breaking change as it would require all children to accept style prop.

1reaction
joshwcomeaucommented, Jul 6, 2017

@cusspvz interesting… we’d also have to merge with any existing styles, but that’s an easy-to-solve nit.

Would be receptive to giving this a shot 😃 my schedule’s crazy right now, involved in a couple other projects and very busy at work, but I think this is a problem worth fixing and storing styles in state seems to make sense to me (I’d have to think much more about it to know if there would be unintended side effects).

Read more comments on GitHub >

github_iconTop Results From Across the Web

How to Fix Chrome Keeps Freezing on Android
Many Android users report their Chrome keeps freezing on the phone. Here in this post, you will get the reason why does this...
Read more >
Issue with leave animation using React-Flip-Move
and currently having an issue with the leave animation. ... import FlipMove from 'react-flip-move'; import { selectUser, fetchUser, ...
Read more >
How to fix Google Chrome browser that freezes ... - YouTube
It has seen too much, so we need to erase it's memory :)
Read more >
Reactcsstransitiongroup: Elements On Their Way Out Stay ...
On chrome mobile after 2 animations with many leaves then reactflipmove gets stuck in state where many nodes hang about that should have...
Read more >
Experts for draggable measurement cursors - Linknovate
Prevents users from getting trapped on the map when scrolling a long page. ... A response time can then be read off you...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found