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

Assert node did load before did enter visible way 1 #886

Conversation

wsdwsd0829
Copy link
Contributor

@wsdwsd0829 wsdwsd0829 commented Apr 18, 2018

Let's discuss which way is better #887

@maicki
Copy link
Contributor

maicki commented Oct 17, 2018

@wsdwsd0829 Can you add an entry to the changelog please.

Copy link
Contributor

@maicki maicki left a comment

Choose a reason for hiding this comment

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

@nguyenhuy Can you also take a look at this change please. It will change the expectation of a node within didEnterVisibleState, before it was kind of not defined if the node was loaded or not.

@appleguy
Copy link
Member

@wsdwsd0829 is this still the latest patch, or did we merge a different solution already? Let's update this and ask for a review once it's ready, if still applicable.

@wsdwsd0829
Copy link
Contributor Author

This is the latest, let's try to merge this.

@ghost
Copy link

ghost commented Oct 23, 2018

🚫 CI failed with log

@maicki maicki merged commit 14681c0 into TextureGroup:master Oct 24, 2018
mikezucc pushed a commit to mikezucc/Texture that referenced this pull request Nov 7, 2018
* fix SIMULATE_WEB_RESPONSE not imported TextureGroup#449

* Fix to make rangeMode update in right time

* access layer to load node before enter visible

* revert space
ernestmama added a commit to ernestmama/Texture that referenced this pull request Nov 14, 2018
ernestmama added a commit to ernestmama/Texture that referenced this pull request Nov 14, 2018
nguyenhuy pushed a commit that referenced this pull request Nov 14, 2018
* Revert "ASThread: Remove Locker, Unlocker, and SharedMutex (#1213)"

This reverts commit 5c9815f.

* Revert "Assert node did load before did enter visible way 1 (#886)"
rcancro added a commit to rcancro/Texture that referenced this pull request Nov 14, 2018
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.
nguyenhuy pushed a commit that referenced this pull request Nov 20, 2018
#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.
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.

None yet

3 participants