Skip to content

Commit f9c5273

Browse files
committed
perf: Prefetch suggestions
Improve performance and avoid displaying empty suggestions UI for blogs without support for suggestions.
1 parent 35bc89a commit f9c5273

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

WordPress/Classes/ViewRelated/NewGutenberg/NewGutenbergViewController.swift

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -232,10 +232,9 @@ class NewGutenbergViewController: UIViewController, PostEditor, PublishingEditor
232232
setTitle(post.postTitle ?? "")
233233
editorViewController.setContent(content)
234234

235-
// TODO: reimplement
236-
// SiteSuggestionService.shared.prefetchSuggestionsIfNeeded(for: post.blog) { [weak self] in
237-
// self?.gutenberg.updateCapabilities()
238-
// }
235+
SiteSuggestionService.shared.prefetchSuggestionsIfNeeded(for: post.blog) {
236+
// Do nothing
237+
}
239238
}
240239

241240
private func refreshInterface() {

0 commit comments

Comments
 (0)