-
Notifications
You must be signed in to change notification settings - Fork 29
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
different between versions 3.0.0 and 2.0.2 #23
Comments
point 4 : Nexus 6p - Android 8.1 doesn't have this mistake |
Hi @Kadanza, I missed your original message. Thanks for reaching out. Hopefully, I can address some of your questions below:
As listed in the README, v3 focuses on Kotlin friendly, preserve immutability, and extensibility. For instance, you still can set null value for a non-null LiveData which can cause NPE at runtime. Compiler should be able to prevent it.
There is tradeoffs for the approach. Kotlin lambda generates different object down to Java layer which makes harder to remove the observer later on.
I haven't encountered this issue. I can take a look later. |
point 3 : are you not recommend use version 2 because of problem with memory? I use version 2 widely |
If you use v2.0.2, So, migrating to v3 is an optional. |
Let us know if you have any other concerns. I will close this issue for now. Feel free to reopen if needed. |
Hi
1) what improvement has version 3.0.0?
2) why need MutableLiveDataKtx instead MutableLiveData?
3) In version 2.0 we has great extension observe without Observer
livedata.observe(this) {it ->
}
In version 3.0 observe without Observer is gone =(
We have now only ugly
.observe(lifecycleOwner, Observer { result ->
})
In version 2.0 I has unpleasant bug in android studio,
My breakpoint is skipped by android studio in extension observe, but code in worked
livedata.observe(this) {it ->
// here breakpoint
}
but common way work fine
.observe(lifecycleOwner, Observer { result ->
// result is non-null and always true
})
The text was updated successfully, but these errors were encountered: