Skip to content
This repository was archived by the owner on Apr 8, 2020. It is now read-only.
This repository was archived by the owner on Apr 8, 2020. It is now read-only.

Prerender Parent component and all its children except one #1123

Description

@fatjoni

My situation is this: I am building a single page website and parts of the page are different components. I need to integrate a map from highcharts but i cannot find a way to include it as part of the same parent while excluding from prerendering in the same time. The whole app only works if i move it from shared.ts to client.ts. This hits the websites prerendering benefits. Can you help me on this?
Thank you

Activity

  1. SteveSandersonMS commented on Jul 17, 2017

    @SteveSandersonMS
    Member

    You'll need to use a test in your code like this one to ensure that client-only code only executes on the client.

    There isn't a straightforward way that I know of, with either Angular or React, to just mark a whole component as not to be included during server-side prerendering. But for more details about Angular/React APIs, please check their docs.

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