{"action":"created","issue":{"url":"https://api.github.com/repos/evant/rxloader/issues/15","labels_url":"https://api.github.com/repos/evant/rxloader/issues/15/labels{/name}","comments_url":"https://api.github.com/repos/evant/rxloader/issues/15/comments","events_url":"https://api.github.com/repos/evant/rxloader/issues/15/events","html_url":"https://github.com/evant/rxloader/issues/15","id":54362092,"number":15,"title":"onNext() get called during RxLoader creation","user":{"login":"huahou","id":454121,"avatar_url":"https://avatars.githubusercontent.com/u/454121?v=3","gravatar_id":"","url":"https://api.github.com/users/huahou","html_url":"https://github.com/huahou","followers_url":"https://api.github.com/users/huahou/followers","following_url":"https://api.github.com/users/huahou/following{/other_user}","gists_url":"https://api.github.com/users/huahou/gists{/gist_id}","starred_url":"https://api.github.com/users/huahou/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/huahou/subscriptions","organizations_url":"https://api.github.com/users/huahou/orgs","repos_url":"https://api.github.com/users/huahou/repos","events_url":"https://api.github.com/users/huahou/events{/privacy}","received_events_url":"https://api.github.com/users/huahou/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":7,"created_at":"2015-01-14T19:05:18Z","updated_at":"2015-01-14T23:30:06Z","closed_at":null,"body":"I have a fragment hosted by an activity. Within the fragment, I create an RxLoader by:\r\n\r\nRxLoader1<DealSavable, MyData> myLoader;\r\n\r\nmyLoader = RxLoaderManager.get(getActivity()).create(..., new RxLoaderObserver<MyData>() {\r\n                    @Override\r\n                    public void onNext(MyData value) {\r\n                    }\r\n                    ...\r\n                 });\r\n\r\nmyLoader.restart();\r\n\r\nThe 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. \r\n\r\nIs this a bug? How can I make sure that onNext() is called only when \"restart()\" is called?\r\n\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/evant/rxloader/issues/comments/70013954","html_url":"https://github.com/evant/rxloader/issues/15#issuecomment-70013954","issue_url":"https://api.github.com/repos/evant/rxloader/issues/15","id":70013954,"user":{"login":"huahou","id":454121,"avatar_url":"https://avatars.githubusercontent.com/u/454121?v=3","gravatar_id":"","url":"https://api.github.com/users/huahou","html_url":"https://github.com/huahou","followers_url":"https://api.github.com/users/huahou/followers","following_url":"https://api.github.com/users/huahou/following{/other_user}","gists_url":"https://api.github.com/users/huahou/gists{/gist_id}","starred_url":"https://api.github.com/users/huahou/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/huahou/subscriptions","organizations_url":"https://api.github.com/users/huahou/orgs","repos_url":"https://api.github.com/users/huahou/repos","events_url":"https://api.github.com/users/huahou/events{/privacy}","received_events_url":"https://api.github.com/users/huahou/received_events","type":"User","site_admin":false},"created_at":"2015-01-14T23:30:06Z","updated_at":"2015-01-14T23:30:06Z","body":"that will definitely help. "}}