Skip to content

SSR: missing class and style attributes with async components #11837

Open
@realityfilter

Description

@realityfilter

Version

2.6.11

Reproduction link

https://github.com/realityfilter/bugreport-dynamic-components-ssr

https://replit.com/@posva/vuejsvue11837

Steps to reproduce

  • run

What is expected?

<app data-server-rendered="true"><div class="child parent app"></div> <div class="child async parent app"></div></app>

What is actually happening?

<app data-server-rendered="true"><div class="child parent app"></div> <div class="child async parent"></div></app>

There are some workarounds for this issue:

  • avoiding async components via manual registering the components in a plugin
  • wrapping the DynamicComponent with a div

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions