Skip to content

suppressBrowserRender should either be renamed or updated #42

Open

Description

@reidab

As of 0.4.0, the suppressBrowserRender option doesn't really do what it says on the tin. Since the instance-initializer no longer injects {{head-layout}}, returning early from it doesn't actually suppress any rendering.

Activity

  1. rwjblue commented on Nov 6, 2017

    @rwjblue
    Member
  2. rondale-sc commented on Nov 20, 2017

    @rondale-sc
    Contributor

    @reidab I think maybe that shouldn't be config anymore. Since the consuming application is responsible now for when head-layout component gets rendered I'd expect to have that logic co-located with the component call.

    Something like:

    {{#if fastboot.isFastBoot }}
      {{ head-layout }}
    {{/if}}
    

    If that is the case we need to update the README to remove suppressBrowserRender as an option. And remove any logic around it.

    @rwjblue thoughts?

  3. nolman commented on Apr 30, 2018

    @nolman

    Just a heads up - we are using this to dynamically select which CSS gets loaded for our app, when we disable the suppressBrowserRender in fastboot when the app rehydrates the css vanishes as everything in {{head-layout}} gets removed. Not sure what the right name for this variable is but it most likely needs to stay around to prevent triggering a CSS reload.

  4. Duder-onomy commented on Dec 12, 2018

    @Duder-onomy

    I have been running into this issue as well.
    Fastboot+Ember renders the head, along with all of its special bits (meta tags, structured data etc)
    Ember comes down the pipe and crushes all of those bits.

    If I do what @rondale-sc suggests (wrap the {{head-layout}} in a {{fastboot.isFastBoot}} check. It fixes my problem.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions