Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

weak or unowned? #206

Open
LucasVanDongen opened this issue Jan 21, 2019 · 0 comments
Open

weak or unowned? #206

LucasVanDongen opened this issue Jan 21, 2019 · 0 comments

Comments

@LucasVanDongen
Copy link

I'm trying to understand better how to work the best way possible with ReactiveKit. One of the things that I know I should do is make the reference to self weak in blocks live observeNext. However it seems to me that it's quite rare if not impossible that the ViewController my ViewModel belongs to really became nil when one of these blocks gets called. Is it 100% safe to use unowned instead or am I missing some edge cases where my app might crash?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant