Fastboot initial title render
See original GitHub issueA repost of #43. The title
in the html payload is the initial state and not the final state.
Issue Analytics
- State:
- Created 7 years ago
- Reactions:4
- Comments:7 (1 by maintainers)
Top Results From Across the Web
Shoebox - Ember FastBoot
By performing initial renders on the server, your Ember app is accessible to search ... This addon allows you to specify the page...
Read more >title does not update after initial load · Issue #37 - GitHub
I've inspected headData.title , which is updating properly, but I've no idea why it's not rendered correctly after initial load when property changes....
Read more >FastBoot network mocking | EmberMap
If we pull up this page in Chrome, we'll see it makes 3 network requests during its initial render : GET /api/v1/sessions/current GET ......
Read more >FastBoot testing | EmberMap
FastBoot tests are focused on verifying the initial render from your FastBoot-generated HTML. User behavior like following links and filling in forms should ......
Read more >Where is Fast Boot ™? - Ember.JS
I would like to generate an almost complete page server-side, then render it in the browser and then bind a couple of Ember...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
That’s correct @Ravenstine but yes it does depend on also using ember-cli-head (and adding setTitle to your route which then sets the title on the headData service.
If you don’t use ember-cli-head then perhaps you’d have to use the method they use to affect what’s in the head - the
-in-element
helper/component, which seems to be private/undocumented. See here: https://github.com/ronco/ember-cli-head/blob/master/addon/templates/components/head-layout.hbsI don’t feel quite sure enough about how best to fix this but I believe I’ve identified the problem.
In document-title.js,
collectTitleTokens
ultimately callssetTitle
when it reaches a route withtitle
set. However, it calls the router’s setTitle, which is set when Router is reopened lower down in that module, not the route’s setTitle. I addedright before the call to self.router.setTitle and it solved the problem, though perhaps there’s some better option? Please advise and I’ll be happy to submit a pull request.