tommoor / emojione-picker

A react emoji picker for use with emojione
http://tommoor.github.io/emojione-picker
MIT License
261 stars 61 forks source link

Shallow compares to prevent unnecessary renders #49

Closed r0stig closed 7 years ago

r0stig commented 7 years ago

As issue #38 I had problems using this inside a component which rerenders frequently. Added the fix that was suggested in the issue which works in my case.

tommoor commented 7 years ago

Hey @r0stig - I do agree that a change like this is needed, however shallow compare is now considered legacy. I'll be updating the component to use PureComponent instead.