javascript - How to check if react shouldComponentUpdate works correctly -
so have lots of components , each of them has own shouldcomponentupdate()
function. of them compare states based on immutable.js datasets. of them compares props. of them work purerendermixin. app's growth new states added, new props added, stores change api , on. so, @ moment need check going on while developing. can use chrome devtools review , visualize dom changed have no idea how check if react virtual dom changed.
i have idea cover shouldcomponentupdate()
-s tests seems testing overhead test each possible state twice: behavior in app , behaviour in shouldcomponentupdate()
.
since using base pure component in este.js, need check updated components uncomment this: https://github.com/steida/este/blob/fb951cfd3805926c22697486c12bc7ddce3f1ecb/src/client/components/component.react.js#l26
Comments
Post a Comment