teaset icon indicating copy to clipboard operation
teaset copied to clipboard

我想知道SegmentedView里是如何实现不重新调用子view的render方法的

Open wanglaohushiwo opened this issue 4 years ago • 1 comments

看segmentedview源码看了一遍,本来以为会在SegmentedView.Sheet的子view里重写shouldComponentUpdate方法(当opatity变化时不更新),但是却没有重写shouldComponentUpdate方法

wanglaohushiwo avatar Aug 03 '20 11:08 wanglaohushiwo

找到原因了,是这个原因导致的,大家可以去查this.props.children not re-rendered on parent state change

wanglaohushiwo avatar Aug 04 '20 01:08 wanglaohushiwo