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
{{ message }}
This repository was archived by the owner on Dec 5, 2019. It is now read-only.
Repository navigation
This repository was archived by the owner on Dec 5, 2019. It is now read-only.
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 ?
Ah, so, didBecomeActiveSignal will send the view model whenever a change occurs. That won't automatically cause a cycle, but it could result in problems if you replay the signal (thus keeping the view model alive), or capture the sent value in a block or something.
Activity
jspahrsummers commentedon Apr 6, 2015
That sounds like a bug, if true. Could you please distill it down into a minimal test case? 🙏
adriantofan commentedon Apr 7, 2015
Yes,
Here is the code:
I would be happy to investigate further if you can give me any pointer about what might be wrong.
Thank you,
Adrian
ashfurrow commentedon Apr 7, 2015
@adriantofan Is that a
RACObserveinside anotherRACObserve? That may be the source of the issue.adriantofan commentedon Apr 7, 2015
@ashfurrow no, that was a typo. Sorry about that
jspahrsummers commentedon Apr 10, 2015
Ah, so,
didBecomeActiveSignalwill send the view model whenever a change occurs. That won't automatically cause a cycle, but it could result in problems if you replay the signal (thus keeping the view model alive), or capture the sent value in a block or something.