我在props中有一个数据data 一秒变一次 当前组件有一个isActive 在isActive为true时 保存它以作为缓存 用useEffect监听props.data再set到useState中 组件会更新两次。。。白费性能 子组件越多就越卡
阅读量:243
点赞量:20