jordangarcia / nuclear-js-react-addons

NuclearJS addons for working with React
MIT License
20 stars 12 forks source link

Multiple calls to setState on data change #13

Open Stuk opened 9 years ago

Stuk commented 9 years ago

I have an app where an action causes the result of multiple getters to update. From this one action nuclearMixin calls setState once for each getter, which causes React to re-render multiple times as well.

Would you be interested in a pull request that only calls setState once for all changes within one update action?

Sinewyk commented 9 years ago

Sure I would. Please share ^^

Stuk commented 9 years ago

Great! I'll need to work it through our internal open sourcing processes, I just wanted to check before going through that effort :)