-
Notifications
You must be signed in to change notification settings - Fork 1.3k
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
[ASTableNode & ASCollectionNode] Keepalive reference for node if their view is necessarily alive (has a superview). #793
Conversation
This effectively replaces the keepalive reference that is in _ASDisplayView, since that code is not able to be used when subclassing UICollectionView and UITableView. (Even though we do have a +layerClass of _ASDisplayLayer for these cases). |
Generated by 🚫 Danger |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM. Thanks!
…r view is necessarily alive (has a superview). (TextureGroup#793) * fix SIMULATE_WEB_RESPONSE not imported TextureGroup#449 * Fix to make rangeMode update in right time * Keep collection/table node alive if view still in use.
Some uses will try to access view and maintain it for later use.
This PR will try to keep collection/tableNode alive as long as corresponding view still in use (may not in hierarchy), similar to ASDisplayNode & ASDisplayView.