Skip to content

Commit 5d4e4eb

Browse files
committed
Break a strong reference cycle where onboardingViewModel.showSupport closure captures POSAggregateModel
1 parent 78b2a41 commit 5d4e4eb

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

WooCommerce/Classes/POS/Presentation/PointOfSaleDashboardView.swift

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -140,6 +140,9 @@ private extension PointOfSaleDashboardView {
140140
.onAppear {
141141
posModel.trackCardPaymentsOnboardingShown()
142142
}
143+
.onDisappear {
144+
onboardingViewModel.showSupport = nil
145+
}
143146
}
144147
}
145148

0 commit comments

Comments
 (0)