joshwcomeau/react-flip-move

If I switch the list quickly, the list data may not be displayed

taixw2 opened this issue · 2 comments

image

Demobox: https://stackblitz.com/edit/react-6p9tng?file=src%2F1_Shuffle.jsx

Please check the image above or run this demo, you can see that the list has data, but it is not rendered.

  1. it may be difficult to reappear, but the problem will appear after a few more tries.
  2. Maybe the data is: 7 -> 0 -> 7 and it will appear

I am also facing exact same issue. It was working from last few years but after I made more changes which resulted in changing data quickly, the data disappears half of the times.

@taixw2 looks like this issue is already answered here -
#195 (comment)

leaveAnimation={null} worked for me.