Skip to content

sheet.speedy option has no impact on global styles #1720

@oleblaesing

Description

@oleblaesing

Current behavior:

We want to have all of our CSS written directly into the documents head (for whatever reason). To enable this behavior, we are using the sheet.speedy option and provide it via the cache provider. Every styled component CSS gets written to the document head, only styles given to the <Global> element won't show up there.

It seems to be the case, that the global stylings are only get rendered to the head, when the NODE_ENV is set to development (or just not set to production, don't know). The speedy option seems to be fully ignored here.

Expected behavior:

The speedy option is prioritized over the current NODE_ENV setting for every functionality related to it.

Environment information:

  • react version: ^16.8.6
  • emotion version: ^10.0.27

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions