Skip to content

Commit

Permalink
fix observable
Browse files Browse the repository at this point in the history
  • Loading branch information
marty-suzuki committed Sep 26, 2017
1 parent 905e781 commit 7bb5d86
Showing 1 changed file with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -38,8 +38,9 @@ final class RepositoryViewModel {
favorites.append(repository)
return favorites
}
// to use "onNext" because to avoid sending dispose
.subscribe(onNext: { favoritesInput.onNext($0) })
// to use ".concat(Observable.never())" because to avoid sending dispose
.concat(Observable.never())
.bind(to: favoritesInput)
.disposed(by: disposeBag)
}
}

0 comments on commit 7bb5d86

Please sign in to comment.