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

🐛 allow ampshadow to be root for ContextNode #40099

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

marcmrf
Copy link
Contributor

@marcmrf marcmrf commented Jul 25, 2024

amp-render components inside ampshadows are not being rendered beucase ContextNode is not able to find a proper root.

Amp component constructors are working properly, scheduling renders for preact, however this callback is never executed
https://github.com/ampproject/amphtml/blob/main/src/preact/base-element.js#L432 because subscriber thinks the element is not connected https://github.com/ampproject/amphtml/blob/main/src/core/context/subscriber.js#L181.

ampshadow root should be treated like document for normal ampdocs, what do you think?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant