-
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
Assert node did load before did enter visible way 1 #886
Assert node did load before did enter visible way 1 #886
Conversation
@wsdwsd0829 Can you add an entry to the changelog please. |
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.
@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.
@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. |
This is the latest, let's try to merge this. |
🚫 CI failed with log |
…nodeDidLoad-before-didEnterVisible-1
* 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
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.
#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.
Let's discuss which way is better #887