Open rstacruz opened 8 years ago
hrm, probably not. That does seem odd.
nah, i havent tested it, but i'm just wondering what the "spec" says. what if it's not memoized, but returns the same thing (that doesn't have sub-components)?
module.exports = {
render: () => <div>hello!</div>,
onUpdate: () => { console.log('onupdate was called') }
}
// should onUpdate be called twice if this was rendered twice?
should
onUpdate
be called when render returns the same thing (eg, when it was memoized)?For instance: