This repository has been archived by the owner on Dec 5, 2019. It is now read-only.
This repository has been archived by the owner on Dec 5, 2019. It is now read-only.
Open
Description
Hello,
I have a retain cycle in my code caused by the following setup in viewDidLoad
[[[[RACSignal
combineLatest:@[RACObserve(self.viewModel,index),
/*A*/ self.viewModel.didBecomeActiveSignal]]
/*B RACObserve(self.viewModel,active)]]*/
deliverOnMainThread]
distinctUntilChanged]
subscribeNext:^(RACTuple* x) {
The option A is causing a retain cycle so the view model is never released. B works fine. Do you see something wrong with the code or it might be a bug ?
Thank you,
Adrian