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 issueUsing 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:
- Created 7 years ago
- Reactions:4
- Comments:53 (13 by maintainers)
Top 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 >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
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.@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).