How To Make An App Like Instagram in iOS, Episode 15: List of Posts | Kodeco


This is a companion discussion topic for the original entry at https://www.kodeco.com/4001919-how-to-make-an-app-like-instagram-in-ios/lessons/15

in episode 15
do we need [weak self] for

 getPostsSubscriber = client.publisherForRequest(request)
            .sink(receiveCompletion: { result in
                if case .failure(let failure) = result {
                    self.loadError = failure
                }
            }, receiveValue: { newPosts in
                self.posts = newPosts
            })
    }

?