- Notifications
You must be signed in to change notification settings - Fork819
Open
Description
Hi, I'm using evergreen in a server side app. When I render something like this:
<PanemarginTop="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 thecss
sheet 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 astyle
prop:
<Pane style={{ marginTop: '32px' }} />