就是因为项目中有类似需求,所以就想沿用老师讲的方法下做个下拉加载,但是发现只要触发callback方法后,就算切换到别的路由,即使没用调用loadmore组件,下拉的时候也会触发callback方法,结果导致报错。。想问下这个有什么解决方案吗?
Warning: setState(...): Can only update a mounted or mounting component. This usually means you called setState() on an unmounted component. This is a no-op. Please check the code for the MobileGift component.

