Skip to content

[ASDisplayNode] Propagate traits before loading a subnode#1234

Merged
nguyenhuy merged 1 commit into
TextureGroup:masterfrom
rcancro:propagateTraitsBeforeLoad
Nov 20, 2018
Merged

[ASDisplayNode] Propagate traits before loading a subnode#1234
nguyenhuy merged 1 commit into
TextureGroup:masterfrom
rcancro:propagateTraitsBeforeLoad

Conversation

@rcancro

@rcancro rcancro commented Nov 14, 2018

Copy link
Copy Markdown
Contributor

#886 enforces that some nodes are loaded before they are sent a visiblity event, but it was not propagating the trait collection before forcing the load.

We are propagating traits in _setSupernode: (which was happening after the forced load). I moved the possible forced load to _setSupernode:, after propagating traits but before any visibility states are changed.

@CLAassistant

CLAassistant commented Nov 14, 2018

Copy link
Copy Markdown

CLA assistant check
All committers have signed the CLA.

@nguyenhuy nguyenhuy left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

LGTM. Would be great to have another approval from the core team and @wsdwsd0829.

TextureGroup#886 enforces that some nodes are loaded before they are sent a visiblity event, but it was not propagating the trait collection before forcing the load.

We are propagating traits in `_setSupernode:` (which was happening after the forced load). I moved the possible forced load to `_setSupernode:`, after propagating traits but before any visibility states are changed.
@rcancro
rcancro force-pushed the propagateTraitsBeforeLoad branch from c7bed3f to f24bf80 Compare November 14, 2018 21:40
@wsdwsd0829

Copy link
Copy Markdown
Contributor

LGTM Thanks.

@nguyenhuy
nguyenhuy merged commit 9cf54e8 into TextureGroup:master Nov 20, 2018
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

Successfully merging this pull request may close these issues.

5 participants