Skip to content

Commit 065b3b6

Browse files
committed
Add more comment about SearchUICommand.resynchronizeModels since only products search requires it.
1 parent 267e69a commit 065b3b6

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

WooCommerce/Classes/ViewRelated/Search/SearchUICommand.swift

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ protocol SearchUICommand {
1111
var searchBarPlaceholder: String { get }
1212

1313
/// A closure to resynchronize models if the data source might change (e.g. when the filter changes in products search).
14+
/// Set externally to enable resyncing the models when needed. Otherwise, an empty closure can be set by default.
1415
var resynchronizeModels: (() -> Void) { get set }
1516

1617
associatedtype ResultsControllerModel: ResultsControllerMutableType where ResultsControllerModel.ReadOnlyType == Model

0 commit comments

Comments
 (0)