Open mhluska opened 6 years ago
Can confirm that this is how it is for me as well. Using Ember CLI 2.15.1.
@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)
@mhluska did you ever figure that out?
@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.
The readme says:
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}}
inapplication.hbs
as well asprofiles/show.hbs
in order for the changes in the profile show route to be reflected after FastBoot render.Hope that makes sense.