Maybe fix race condition when account is loaded as profile statuses VC is dealloc'd
This commit is contained in:
parent
9dd966f639
commit
5898da3234
|
@ -103,7 +103,7 @@ class ProfileStatusesViewController: UIViewController, TimelineLikeCollectionVie
|
||||||
.sink { [unowned self] id in
|
.sink { [unowned self] id in
|
||||||
switch state {
|
switch state {
|
||||||
case .unloaded:
|
case .unloaded:
|
||||||
Task {
|
Task { [self] in
|
||||||
await self.load()
|
await self.load()
|
||||||
}
|
}
|
||||||
case .loaded, .setupInitialSnapshot:
|
case .loaded, .setupInitialSnapshot:
|
||||||
|
|
Loading…
Reference in New Issue