Skip to content

SSR with Remix #1618

Description

@imsteev

Hi, I'm using evergreen in a server side app. When I render something like this:

<Pane marginTop="32px" />

the first render of my page does not have the desired spacing. Further investigation led me to realize that the class ".ub-mt_32px" is not included in the css sheet that comes from extractStyles(). But upon the second load, this class is in the stylesheet.

Why would this be happening and how/why would margin classes generate dynamically?

I may be missing something regarding SSR in general, this is the first app I've explored doing it with.


My workaround at the moment is to directly apply a style prop:

<Pane style={{ marginTop: '32px' }} />

Metadata

Metadata

Assignees

No one assigned

    Labels

    help-wantedAn issue that needs additional investigation or community feedback to resolvequestionA question around API, functionality, etc.

    Type

    No type

    Fields

    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