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

[BUGFIX beta] Fix revalidation hook messages. #13353

Closed
wants to merge 1 commit into from

Conversation

rwjblue
Copy link
Member

@rwjblue rwjblue commented Apr 18, 2016

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.

Fixes #11505.
Fixes #11493.

@rwjblue
Copy link
Member Author

rwjblue commented Apr 18, 2016

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?

@rwjblue rwjblue changed the title [WIP] [BUGFIX beta] Fix revalidation hook messages. [BUGFIX beta] Fix revalidation hook messages. Apr 18, 2016
@rwjblue
Copy link
Member Author

rwjblue commented May 5, 2016

#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';
Copy link
Member

@stefanpenner stefanpenner May 5, 2016

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 ?

Copy link
Member Author

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.

@homu
Copy link
Contributor

homu commented May 10, 2016

☔ 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`.
@homu
Copy link
Contributor

homu commented Jul 27, 2016

☔ The latest upstream changes (presumably #13911) made this pull request unmergeable. Please resolve the merge conflicts.

@rwjblue rwjblue closed this Sep 26, 2016
@rwjblue rwjblue deleted the fix-deprecation-output branch September 26, 2016 01:19
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.

3 participants