Skip to content

Cannot enable Universal Rendering in projects using activity-detector #10

@JesperWe

Description

@JesperWe

activity-detector is only meaningful when running code in a browser, so for a project that uses Universal Rendering (Server Side Rendering) it should not be part of the server side code path.

The problem is that activity-detector tries to unsafely access the document object already during import, which breaks the app before any conditional code paths can be selected. And it is currently not possible to conditionally import modules.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions