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?
Consider the case when we have two components:
list
anditem
. List consists of items, both of them usebackbone-react-component
.list
relates to collection anditem
relates to model. Now each time model is added to collection, collection triggerschange
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?