Skip to content
This repository was archived by the owner on Feb 2, 2023. It is now read-only.

Conversation

nguyenhuy
Copy link
Contributor

  • Instead of reloading, layout delegates (i.e ASTableView and ASCollectionView) trigger an empty update transaction after a cell relayout (fix Relayout Cell Node Causes Row to Be Reloaded #808).
  • Since delegates don't animate layout changes anymore, revert the animation example in KittenNode.
  • Only set a default layout delegate to ASCellNode if it is not provided by the async data source. This allow developers to set their own delegate.
  • Address comments in Improve cell node relayout #793.

@nguyenhuy nguyenhuy force-pushed the ImproveCellNodeLayoutDelegate branch from 84a5556 to a6807ef Compare November 4, 2015 14:54
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@nguyenhuy for my understanding, why is the check necessary before setting?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I want to allow developers to set their own layout delegate (in -tableView:nodeForRowAtIndexPath). This checks make sure if developer indeed provides such delegate, it is not overridden here.

@appleguy
Copy link
Contributor

appleguy commented Nov 9, 2015

Great patch! Thank you for carefully watching community feedback for your changes and iterating on them — a real dedication to polish and proper API design in the period of time where we can easily make changes. Very important and a great example to set.

appleguy added a commit that referenced this pull request Nov 9, 2015
@appleguy appleguy merged commit 7c9698a into facebookarchive:master Nov 9, 2015
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Relayout Cell Node Causes Row to Be Reloaded

3 participants