Restore table reload to ensure table is synced to model.

This commit is contained in:
Hedden, Kyle Matthew 2024-06-19 14:52:33 -04:00
parent 1d2098c44c
commit 451758f96d

View File

@ -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() {