Retain cycle in ArticleListController

Hi there,
Looks like the token assignment in viewDidLoad creates a Retain Cycle. ArticleListController is never deinitialized. Capture list should be added.

token = NewsAPI.service.observe(.articles) { [weak self] _, _ in
// 3
DispatchQueue.main.async {
// 4

@jeka53 Thank you for the heads up - much appreciated! :]

1 Like

Cu placere)
You can mark topic as closed I think.

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