Skip to content

SSR - mismatched styles are not updated in the DOM unless the element has a ref #7063

@KaelWD

Description

@KaelWD

Version

2.5.3

Reproduction link

https://codepen.io/anon/pen/GOvGBJ?editors=1010

Steps to reproduce

Load the codepen.
This is obviously not an actual SSR app, but is emulating one. The same thing happens with actual SSR that sets the padding based on window width.

What is expected?

The inline style should be updated when the page hydrates (see the codepen below)

What is actually happening?

The style only updates if the element has a ref
See https://codepen.io/anon/pen/aVyjoM?editors=1010

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions