From 9b6b6daf456bb00756ea77d3e7c9ac3563eb295f Mon Sep 17 00:00:00 2001 From: Huong Do Date: Thu, 13 Nov 2025 09:50:41 +0700 Subject: [PATCH 1/2] Notify listeners of changes when updating predicate and sort descriptors --- Modules/Sources/Yosemite/Tools/ResultsController.swift | 2 ++ 1 file changed, 2 insertions(+) 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 From 87e48a7d09bb060e0ddd7fa547279a4aede4bc1e Mon Sep 17 00:00:00 2001 From: Huong Do Date: Thu, 13 Nov 2025 10:00:23 +0700 Subject: [PATCH 2/2] Update release notes --- RELEASE-NOTES.txt | 1 + 1 file changed, 1 insertion(+) 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 -----