Skip to content

StyleSheet: singleton is not reset on the server #778

@necolas

Description

@necolas

Do you want to request a feature or report a bug?

Bug

What is the current behavior?

Looks like the StyleSheet accumulates styles across requests, which can result in excess initial CSS being inlined for individual screens in a chunked app.

What is the expected behavior?

Fresh StyleSheet / minimal styles for each SSR

Environment (include versions). Did this work in previous versions?

  • OS: all
  • Device: all
  • Browser: all
  • React Native for Web (version): all
  • React (version): 16

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions