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
感谢发现的问题,并提出解决方案,修改的demo以重新上传到gitbub,并添加了tableView的cell的折叠效果。
demo的功能还在慢慢丰富中,有问题也希望能及时沟通,感谢指正🙏
在 2021-04-22 15:40:43,"Arihin" ***@***.***> 写道:
在AnchorGirlViewModel中,对category进行了订阅,然后里面又进行了对requestCommond的订阅,在category多次切换之后,造成了requestCommond的多次订阅,且没有释放(因为声明的disposeBag会全局一直持有),导致其中的网络请求也会请求多次,应该处理好对requestCommond订阅的释放来避免.目前我是另起一个bag,然后在订阅的category里面再给bag赋新值,requestCommond使用这个bag,可以修复这个重复多订阅的问题
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub, or unsubscribe.
在AnchorGirlViewModel中,对category进行了订阅,然后里面又进行了对requestCommond的订阅,在category多次切换之后,造成了requestCommond的多次订阅,且没有释放(因为声明的disposeBag会全局一直持有),导致其中的网络请求也会请求多次,应该处理好对requestCommond订阅的释放来避免.目前我是另起一个bag,然后在订阅的category里面再给bag赋新值,requestCommond使用这个bag,可以修复这个重复多订阅的问题
The text was updated successfully, but these errors were encountered: