From 2e4c1c81ed6e833ee30207c26c48b5d38134c512 Mon Sep 17 00:00:00 2001 From: CMK Date: Mon, 12 Jul 2021 19:20:00 +0800 Subject: [PATCH] fix: notification data provider not set fetch batch size issue --- Mastodon/Scene/Notification/NotificationViewModel.swift | 1 + 1 file changed, 1 insertion(+) diff --git a/Mastodon/Scene/Notification/NotificationViewModel.swift b/Mastodon/Scene/Notification/NotificationViewModel.swift index 4947dbbd0..34f99d59f 100644 --- a/Mastodon/Scene/Notification/NotificationViewModel.swift +++ b/Mastodon/Scene/Notification/NotificationViewModel.swift @@ -75,6 +75,7 @@ final class NotificationViewModel: NSObject { self.fetchedResultsController = { let fetchRequest = MastodonNotification.sortedFetchRequest fetchRequest.returnsObjectsAsFaults = false + fetchRequest.fetchBatchSize = 10 fetchRequest.relationshipKeyPathsForPrefetching = [#keyPath(MastodonNotification.status), #keyPath(MastodonNotification.account)] let controller = NSFetchedResultsController( fetchRequest: fetchRequest,