Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Create closure is called twice #4

Open
rvlad-ford opened this issue Dec 7, 2018 · 1 comment
Open

Create closure is called twice #4

rvlad-ford opened this issue Dec 7, 2018 · 1 comment

Comments

@rvlad-ford
Copy link

Running the sample project I've noticed that the create closure is called twice for each Presentable. It looks like tableView(_ tableView: UITableView, cellForRowAt indexPath: IndexPath) is called twice, which makes me think that something is calling reloadData on the table view as soon as it displays something. This, in turn, runs runConfigure(with: cell) for each Presentable twice, which can lead to all sorts of problems.

@rafiki270
Copy link
Contributor

rafiki270 commented Dec 7, 2018

hmmm ... but isn't it just an issue with the demo app? The Presentables only calls do reloadData on a table view when data change ...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants