You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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:
The text was updated successfully, but these errors were encountered: