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

connectedCallback called multiple times for DCE child #46

Open
sashafirsov opened this issue Apr 14, 2024 · 0 comments
Open

connectedCallback called multiple times for DCE child #46

sashafirsov opened this issue Apr 14, 2024 · 0 comments

Comments

@sashafirsov
Copy link
Member

http-request and perhaps other DCE components connected to DOM twice:

  • during custo-element connectedCallback on template content re-attachment
  • after template render

As the initial content has XSLT markup like <http-requst url="{url}", the attributes and content is not valid.

The template extraction should be not following the DOM re-injection, rather it has to be used as the base for XSLT and later the rendered payload replacing the <template>.

sashafirsov added a commit that referenced this issue Apr 14, 2024
* obj2node( o, tag, doc ) array bug fix
* connectedCallback called multiple times for DCE child #46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant