-
Notifications
You must be signed in to change notification settings - Fork 158
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
Should fastboot execute code scheduled for 'afterRender' queue? #207
Comments
The |
@mixonic I'm seeing a lot of code in the wild, and several third party addons I'm including (ivy-codemirror, ember-cli-jstree), following this advice: emberjs/ember.js#12290 (comment) It doesn't help that the advice provided here: http://emberjs.com/deprecations/v1.x/#toc_modifying-a-property-within-code-didinsertelement-code usually doesn't work. |
@Gaurav0 if it plans to interact with the DOM, that code should schedule from I don't believe there is justification to drop |
Turn it around. The question is, is there ever a use case for |
Yes. I'm using it to make Ember Wormhole compatible with Ember FastBoot in yapplabs/ember-wormhole#54. It is un hack for sure, but dropping |
Alright. I'm going to point this at the learning team then. |
@mixonic can you look at Ember-Swiper/ember-cli-swiper#21? I think it's one of the use cases @Gaurav0 was talking about |
Code scheduled for the
afterRender
queue (i.e.run.schedule('afterRender')
) expects the DOM to be rendered. Is it intended that fastboot run such code?Unfortunately or otherwise, people have been moving code from
didInsertElement
toafterRender
queue in order to avoid a performance deprecation warning.The text was updated successfully, but these errors were encountered: