(Version 2) Chapter 6, page 126: wrong DisposeBag used?

In the sample code shown in that page, a PhotosViewController DisposeBag is used (which does not exist at that moment either):

newPhotos
.ignoreElements()
.subscribe(onCompleted: { [weak self] in
self?.updateNavigationIcon()
})
.disposed(by: photosViewController.bag)

instead of the MainViewController’s one:

newPhotos
.ignoreElements()
.subscribe(onCompleted: { [weak self] in
self?.updateNavigationIcon()
})
.disposed(by: bag)

1 Like

@dariojg Thank you for sharing this - much appreciated! :]

This topic was automatically closed after 166 days. New replies are no longer allowed.