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

{{head-layout}} needs to be included multiple times with FastBoot #51

Open
mhluska opened this issue Mar 30, 2018 · 4 comments
Open

{{head-layout}} needs to be included multiple times with FastBoot #51

mhluska opened this issue Mar 30, 2018 · 4 comments

Comments

@mhluska
Copy link

mhluska commented Mar 30, 2018

The readme says:

As mentioned above you need to add the {{head-layout}} component once and only once in an application wide template

But I'm finding that I need to include {{head-layout}} at whichever route level I interact with the headData service in order for it to work with FastBoot.

For example, if I have /profiles/1 which corresponds to an application route and a profile show route, both of which set data on the headData service, then I will need {{head-layout}} in application.hbs as well as profiles/show.hbs in order for the changes in the profile show route to be reflected after FastBoot render.

Hope that makes sense.

@t4t5
Copy link

t4t5 commented Mar 31, 2018

Can confirm that this is how it is for me as well. Using Ember CLI 2.15.1.

@mhluska
Copy link
Author

mhluska commented Apr 2, 2018

@t4t5 I'm actually noticing that this is still sporadically broken for me :(

Edit: Nevermind, it's broken for another unrelated reason (array#firstObject not working in FastBoot for some reason)

@knownasilya
Copy link

@mhluska did you ever figure that out?

@snewcomer
Copy link
Contributor

@mhluska The problem here is Fastboot does not include prototype extensions. This is probably an issue for quite a few apps that access firstObject in the template when they expect it to be there.

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

No branches or pull requests

4 participants