Restore table reload to ensure table is synced to model.
This commit is contained in:
parent
1d2098c44c
commit
451758f96d
@ -56,14 +56,14 @@ open class ThreeLayerTableViewController: ProgrammaticTableViewController, Rotor
|
||||
}
|
||||
|
||||
open override func updateUI(for molecules: [MoleculeModelProtocol]? = nil) {
|
||||
let isFirstRender = self.isFirstRender
|
||||
super.updateUI(for: molecules)
|
||||
|
||||
guard molecules == nil else { return }
|
||||
|
||||
createViewForTableHeader()
|
||||
createViewForTableFooter()
|
||||
// Reloading the table is handled in updateViews.
|
||||
// Reloading the table is handled in updateViews, however, update views is on a separate rendering task than the current thread. The table render needs to be bound and settled to the new model before others put in additional update requests.
|
||||
tableView.reloadData()
|
||||
}
|
||||
|
||||
override open func viewDidLoad() {
|
||||
|
||||
Loading…
Reference in New Issue
Block a user