diff --git a/Modules/Sources/Yosemite/Tools/ResultsController.swift b/Modules/Sources/Yosemite/Tools/ResultsController.swift index cb6c5d77c64..cc29c2f9841 100644 --- a/Modules/Sources/Yosemite/Tools/ResultsController.swift +++ b/Modules/Sources/Yosemite/Tools/ResultsController.swift @@ -234,6 +234,7 @@ public class GenericResultsController { 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. @@ -241,6 +242,7 @@ public class GenericResultsController { private func refreshFetchedObjects(sortDescriptors: [NSSortDescriptor]?) { controller.fetchRequest.sortDescriptors = sortDescriptors try? controller.performFetch() + onDidChangeContent?() } /// Initializes the FetchedResultsController diff --git a/RELEASE-NOTES.txt b/RELEASE-NOTES.txt index 8d66caff196..3ac9f4e66fc 100644 --- a/RELEASE-NOTES.txt +++ b/RELEASE-NOTES.txt @@ -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 -----