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

Add compatibility for Ember canary #29

Merged
merged 1 commit into from
Oct 11, 2016
Merged

Add compatibility for Ember canary #29

merged 1 commit into from
Oct 11, 2016

Conversation

mitchlloyd
Copy link
Owner

This could probably be merged in, but there is one very minor change from using didDestroyElement to using willDestroyElement. Opened an issue in Ember to fix this.

@rwjblue
Copy link

rwjblue commented Sep 2, 2016

Awesome job here @mitchlloyd!

@rwjblue
Copy link

rwjblue commented Sep 7, 2016

Upstream issue in Ember has been fixed (in emberjs/ember.js#14227).

@mitchlloyd
Copy link
Owner Author

mitchlloyd commented Sep 8, 2016

@rwjblue On current canary (emberjs/ember.js@945d81a), I'm getting a new error in tests during teardown when calling appendTo.

Uncaught TypeError: Cannot read property 'length' of null

Which is coming from here:

https://github.com/tildeio/glimmer/blob/0f73a9f8c7c2d697821d8912d5f3d9d6c57768fd/packages/glimmer-runtime/lib/environment.ts#L222

I believe this is related to this commit in Glimmer:

glimmerjs/glimmer-vm@7f7ae4d

I'll dig in and see if I can figure out what's going on.

@rwjblue
Copy link

rwjblue commented Sep 8, 2016

Right, but that basically means that we are trying to "do things" without being inside of a env.begin() / env.commit() transaction. What is the app doing when this error happens?

@rwjblue
Copy link

rwjblue commented Sep 9, 2016

The current issue should be fixed by emberjs/ember.js#14241, would love another set of eyes though.

Test suite passes with that change though:

passing with Ember PR

@rwjblue
Copy link

rwjblue commented Oct 10, 2016

FWIW, this now fixes current beta (2.9+).

@mitchlloyd - Any blockers on landing this?

@mitchlloyd mitchlloyd merged commit f134360 into master Oct 11, 2016
@mitchlloyd mitchlloyd deleted the ember-canary branch October 11, 2016 01:51
@mitchlloyd
Copy link
Owner Author

No blockers, just wanted to make sure all the "multiple root components" stuff settled in Ember.

Released as 1.1.0.

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.

2 participants