magalhas / backbone-react-component

A bit of nifty glue that automatically plugs your Backbone models and collections into your React components, on the browser and server
http://magalhas.github.io/backbone-react-component/
MIT License
809 stars 72 forks source link

Multiple renders #94

Closed mir3z closed 8 years ago

mir3z commented 8 years ago

Consider the case when we have two components: list and item. List consists of items, both of them use backbone-react-component. list relates to collection and item relates to model. Now each time model is added to collection, collection triggers change event. So let's say we have 100 items and we want to add a new item. List will be re-rendered 101 times. Have you thought about this? Is there any mechanism here to prevent unnecessary renders?