Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support content on transport components #2

Open
loreanvictor opened this issue May 11, 2020 · 0 comments
Open

Support content on transport components #2

loreanvictor opened this issue May 11, 2020 · 0 comments
Labels
enhancement New feature or request

Comments

@loreanvictor
Copy link
Contributor

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.
@loreanvictor loreanvictor added the enhancement New feature or request label May 11, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant