-
-
Notifications
You must be signed in to change notification settings - Fork 4.2k
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
[BUGFIX beta] Fix revalidation hook messages. #13353
Conversation
I need to add tests, but the lifecycle tests do not exist yet for ember-glimmer in the new structure (that is being done in #13168). I'd like to just add tests to that PR (separately from this) in an attempt to avoid writing old style tests, that then just have to be manually ported again to the new structure. Any objections? |
#13168 has landed, I'll try to get a test added here so we can land this. |
@@ -84,6 +84,7 @@ Renderer.prototype.dispatchLifecycleHooks = | |||
case 'didUpdate': this.didUpdate(hook.view); break; | |||
} | |||
|
|||
ownerView._dispatching = 'didRender'; |
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.
just double checking, _dispatching
is already defined in the constructor of all possible ownerView
?
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.
Yes, it is initialized to null
by CoreView.prototype.init
here.
☔ The latest upstream changes (presumably 3639774) made this pull request unmergeable. Please resolve the merge conflicts. |
The source of the revalidation was being lost, and the message indicated the root `ownerView` (which was not the thing that triggered a rerender). Also, the `_dispatching` flag was not being changed after calling `didInsertElement` / `didUpdateElement` and before calling `didRender`.
387f216
to
bdca923
Compare
☔ The latest upstream changes (presumably #13911) made this pull request unmergeable. Please resolve the merge conflicts. |
The source of the revalidation was being lost, and the message indicated the root
ownerView
(which was not the thing that triggered a rerender). Also, the_dispatching
flag was not being changed after callingdidInsertElement
/didUpdateElement
and before callingdidRender
.Fixes #11505.
Fixes #11493.