dantrain / react-stonecutter

Animated grid layout component for React
http://dantrain.github.io/react-stonecutter
MIT License
1.21k stars 72 forks source link

Animate single grid item #16

Open berrtech opened 8 years ago

berrtech commented 8 years ago

If there is only one item in the grid, exit animation doesn't work because grid instantly unmounts (I am talking about SpringGrid). Same for entering animation, SpringGrid doesn't exist when first item enters.

I wonder if i'm doing something wrong, but it looks like a bug to me. Also, great work on this component!

MikeTayler commented 7 years ago

@dantrain I'm having a similar issue. Where updating state causes the whole app to re-render so the enter and exit animations don't work. As soon as I remove stone-cutter the issue goes away ie updating state only re-renders the components that need it.

Maybe I'm doing something wrong too?