mirror of
https://github.com/HackPlan/AsyncDisplayKit.git
synced 2026-04-24 03:45:58 +08:00
Use the result count
This commit is contained in:
@@ -84,7 +84,7 @@ final class ViewController: ASViewController, ASTableDataSource, ASTableDelegate
|
||||
}
|
||||
|
||||
ViewController.fetchDataWithCompletion { resultCount in
|
||||
let action = Action.EndBatchFetch(resultCount: 20)
|
||||
let action = Action.EndBatchFetch(resultCount: resultCount)
|
||||
let oldState = self.state
|
||||
self.state = ViewController.handleAction(action, fromState: oldState)
|
||||
self.renderDiff(oldState)
|
||||
|
||||
Reference in New Issue
Block a user