joshwcomeau / react-flip-move

Effortless animation between DOM changes (eg. list reordering) using the FLIP technique.
http://joshwcomeau.github.io/react-flip-move/examples
MIT License
4.09k stars 258 forks source link

Suppress warnings when in production #134

Closed AlexanderOtavka closed 7 years ago

AlexanderOtavka commented 7 years ago

Prop converter does several runtime checks and logs warnings that aren't needed in production. When process.env.NODE_ENV === 'production', they are now disabled.

joshwcomeau commented 7 years ago

Thanks for your contribution!

Sorry for the delay on this; I'm interested in merging this PR, but I wanted to make a slight tweak, and it's been a hectic week (just started a new job!)

I'll leave a comment in the PR. If you can make the requested tweak I'll happy merge it in :)