Tagged articles
2 articles
Page 1 of 1
Meituan Technology Team
Meituan Technology Team
Aug 19, 2016 · Mobile Development

Understanding Memory Leaks with RACObserve and RACSubject in ReactiveCocoa

In ReactiveCocoa, using RACObserve inside a flattenMap or applying map to a hot RACSubject can create retain cycles because the generated blocks capture self and the subject retains its subscribers, so employing @weakify/@strongify and ensuring signals send a completed or error event breaks these hidden memory leaks.

MemoryLeakObjective‑CReactiveCocoa
0 likes · 15 min read
Understanding Memory Leaks with RACObserve and RACSubject in ReactiveCocoa