Why do you say of course they wonβt be updated? You can see in the video they are being updated. Afaik the key different between Flowable and Observable is that the former has built in back pressure support, which really isnβt relevant to me.
I actually fixed it by changing the LifecycleProvider in the ShowsFragment from this to activity!! See the linked SO answer for the updated code.
How is Flowable different than Observable in terms of what youβve described?
Since this particular ViewMode is a singleton, Iβm just getting a reference to it rather than instantiating it, so it shouldnβt matter much where that actually happens.
For further actions, you may consider blocking this person and/or reporting abuse
We're a place where coders share, stay up-to-date and grow their careers.
Of course that they won't be updated since you're using an observable, try changing observable to Flowable and see the magic.
Why do you say of course they wonβt be updated? You can see in the video they are being updated. Afaik the key different between Flowable and Observable is that the former has built in back pressure support, which really isnβt relevant to me.
I actually fixed it by changing the LifecycleProvider in the ShowsFragment from this to activity!! See the linked SO answer for the updated code.
Flowable isn't only backpressure related, it constantly emits a flow when the observe is present.
On attach isn't the best place to initiate the view model, onViewCreated is where it should be moved to.
How is Flowable different than Observable in terms of what youβve described?
Since this particular ViewMode is a singleton, Iβm just getting a reference to it rather than instantiating it, so it shouldnβt matter much where that actually happens.