Skip to content
This repository was archived by the owner on May 23, 2020. It is now read-only.
This repository was archived by the owner on May 23, 2020. It is now read-only.

onNext() get called during RxLoader creation #15

Description

@huahou

I have a fragment hosted by an activity. Within the fragment, I create an RxLoader by:

RxLoader1<DealSavable, MyData> myLoader;

myLoader = RxLoaderManager.get(getActivity()).create(..., new RxLoaderObserver() {
@OverRide
public void onNext(MyData value) {
}
...
});

myLoader.restart();

The problem is: If the loader retrieved some data, and after that, if the activity is re-created, during the above "create()" method call, the onNext() is called immediately with previously loaded stale data.

Is this a bug? How can I make sure that onNext() is called only when "restart()" is called?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions