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' }} />
Hi, I'm using evergreen in a server side app. When I render something like this:
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
csssheet that comes fromextractStyles(). 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
styleprop: