You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Custom style prop of Flex gets appended to the resulting Html correctly on first render. However after client side navigation in ssr mode, Flex's default style properties are lost.
E.g. given the below Flex definition:
<Flex vertical=true align=FlexAlign::End attr:style="color: red" >"Some red text" </Flex>
The following div is generated on the first render:
<divclass="thaw-flex" style="display: flex;flex-direction: column;gap: 8px 12px;align-items: end;;color: red;">Some red text</div>
This is expected.
However when navigating away and then back to the same component, the following div is generated:
<divstyle="color: red" class="thaw-flex">Some red text</div>
Notice the display, flex-firection, ... properties are gone. I am expecting the same Html as for the first render.
Minimal reproducible example below. On initial load Some red text is right-aligned as expected. After navigating to /pageblue and back, the red text is left-aligned.
Custom
style
prop ofFlex
gets appended to the resulting Html correctly on first render. However after client side navigation inssr
mode, Flex's default style properties are lost.E.g. given the below
Flex
definition:<Flex vertical=true align=FlexAlign::End attr:style="color: red" >"Some red text" </Flex>
The following div is generated on the first render:
This is expected.
However when navigating away and then back to the same component, the following div is generated:
Notice the
display
,flex-firection
, ... properties are gone. I am expecting the same Html as for the first render.Minimal reproducible example below. On initial load
Some red text
is right-aligned as expected. After navigating to/pageblue
and back, the red text is left-aligned.Is this a bug or are my expectations incorrect?
Relevant sections of
Cargo.toml
:The text was updated successfully, but these errors were encountered: