Skip to content

Support content on transport components #2

Description

@loreanvictor

Right now, you cannot provide the content of a transport component during static rendering phase, which is pretty limiting. I suspect it should actually be feasible:

  • During static rendering, render the content to an intermediate element.
  • Pass the HTML string representation of that element to transport script.
  • During dynamic rendering, render the HTML string using DOM APIs directly (_innerHTML)
  • Ensure that scripts are going to execute properly (so nested transported components are properly populated)
  • Pass the resulting DOM to the (parent) transported component.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions