We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9ff055a commit 1341c42Copy full SHA for 1341c42
Sources/InstantSearchCore/Hits/HitsInteractor.swift
@@ -42,6 +42,20 @@ public class HitsInteractor<Record: Codable>: AnyHitsInteractor {
42
}
43
44
45
+
46
+ /// Value defines how many pages of hits might be kept in memory
47
+ /// before and after the current page
48
+ /// When set `nil`, all the fetched pages will stay in memory
49
+ /// Default value: 3
50
+ public var pageCleanUpOffset: Int? {
51
+ get {
52
+ return paginator.pageCleanUpOffset
53
+ }
54
55
+ set {
56
+ paginator.pageCleanUpOffset = newValue
57
58
59
60
convenience public init(infiniteScrolling: InfiniteScrolling = Constants.Defaults.infiniteScrolling,
61
showItemsOnEmptyQuery: Bool = Constants.Defaults.showItemsOnEmptyQuery) {
0 commit comments