Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions Modules/Sources/Yosemite/Tools/ResultsController.swift
Original file line number Diff line number Diff line change
Expand Up @@ -234,13 +234,15 @@ public class GenericResultsController<T: ResultsControllerMutableType, Output> {
private func refreshFetchedObjects(predicate: NSPredicate?) {
controller.fetchRequest.predicate = predicate
try? controller.performFetch()
onDidChangeContent?()
}

/// Refreshes all of the Fetched Objects, so that the new sort descriptors are applied.
///
private func refreshFetchedObjects(sortDescriptors: [NSSortDescriptor]?) {
controller.fetchRequest.sortDescriptors = sortDescriptors
try? controller.performFetch()
onDidChangeContent?()
}

/// Initializes the FetchedResultsController
Expand Down
1 change: 1 addition & 0 deletions RELEASE-NOTES.txt
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
- [*] Fix order details presentation when opened from booking details [https://github.com/woocommerce/woocommerce-ios/pull/16331]
- [*] Show POS feedback surveys for eligible merchants [https://github.com/woocommerce/woocommerce-ios/pull/16325]
- [*] Fix product variation selection for order creation [https://github.com/woocommerce/woocommerce-ios/pull/16317]
- [Internal] Notify listeners immediately after updating predicates or sort descriptors for results controllers. [https://github.com/woocommerce/woocommerce-ios/pull/16350]

23.6
-----
Expand Down