Skip to content

Commit 6a1fd90

Browse files
committed
Update NavigationLink to LazyNavigationLink
1 parent 9cd6402 commit 6a1fd90

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

WooCommerce/Classes/ViewRelated/Orders/Order Details/Address Edit/EditAddressForm.swift

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -136,13 +136,13 @@ struct EditAddressForm: View {
136136
.disabled(!viewModel.isDoneButtonEnabled))
137137

138138
// Go to edit country
139-
NavigationLink(destination: FilterListSelector(viewModel: viewModel.createCountryViewModel()), isActive: $showCountrySelector) {
139+
LazyNavigationLink(destination: FilterListSelector(viewModel: viewModel.createCountryViewModel()), isActive: $showCountrySelector) {
140140
EmptyView()
141141
}
142142

143143
// Go to edit state
144144
// TODO: Move `StateSelectorViewModel` creation to the VM when it exists.
145-
NavigationLink(destination: FilterListSelector(viewModel: StateSelectorViewModel()), isActive: $showStateSelector) {
145+
LazyNavigationLink(destination: FilterListSelector(viewModel: StateSelectorViewModel()), isActive: $showStateSelector) {
146146
EmptyView()
147147
}
148148
}

0 commit comments

Comments
 (0)