Open ngagarinov opened 2 years ago
We have some misunderstanding of term nonReusable
In last year we added comment to nonReusable generator.
/// Term non-reusable means that we are creating cell manually with constructor type defined in ConstractableItem. /// In other words this generator will not use `tableView.deqeueReusableCell
This means that nonReusable generator keep reference between one concrete generator and one concrete cell created manually from xib. One to one forever.
But some contributors have opinion that this cell will be configured only once. This is mistake.
I thought the basic idea of non reusable generator was not to update the cell configuration in generate(tableView: UITableView, for indexPath: IndexPath) method , but in all NonReusableGenerators we have this. And now we have to update generator model everytime when we change smth in that cell to prevent reset data while scrolling, i don't think it should be like this. How about removing it ?