Verified
Status Update
Comments
yb...@google.com <yb...@google.com> #2
Trying to find a temporary work-a-round I found that `MediatorLiveData` also doesn't work, as it internally also calls observeForever/removeObserver.
The only work-a-round I found is very hacky and only works on this specific scenario is to `post` to a Handler to `removeObserver` later.
It works only on this case because the background processing only happens when the network call is successful (a.k.a. the LiveData won't values anymore).
The only work-a-round I found is very hacky and only works on this specific scenario is to `post` to a Handler to `removeObserver` later.
It works only on this case because the background processing only happens when the network call is successful (a.k.a. the LiveData won't values anymore).
ze...@gmail.com <ze...@gmail.com> #3
Thank you for a report!
Yeah, your work around is fine for now. This is going to be fixed in alpha-9.
Yeah, your work around is fine for now. This is going to be fixed in alpha-9.
yb...@google.com <yb...@google.com>
yb...@google.com <yb...@google.com>
bs...@gmail.com <bs...@gmail.com> #4
Also, you can try go down to alpha-5, it may be fine there.
ze...@gmail.com <ze...@gmail.com> #5
hi "se...@google.com"
it seems that rolling back to alpha-5 solved it, and I'll be looking forward to alpha-9.
Is this bug brand new or something the team was already aware of?
thanks.
it seems that rolling back to alpha-5 solved it, and I'll be looking forward to alpha-9.
Is this bug brand new or something the team was already aware of?
thanks.
ze...@gmail.com <ze...@gmail.com> #6
No, we weren't aware of that. But we added tests for underlying issue.
bs...@gmail.com <bs...@gmail.com> #7
Great. Super happy to help!
Description
Version used: 1.0.0.aplha1
Devices/Android versions reproduced on: All
- Sample project to trigger the issue.
- A screenrecord or screenshots showing the issue (if UI related).
I would be cool if return types could be generic or even an Object and the mapping could be done on the output. That way i do not need to create a new Dao for every model in my project.