-
Notifications
You must be signed in to change notification settings - Fork 11
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
Custom Element not working #28
Comments
I had the same issue with glimmer/[email protected] (but not 0.8.0). I haven't had a chance to chase down the underlying issue but changing the 'whenRendered' function in initialize-custom-elements.js with the following fixes the issue: function whenRendered(app, callback) {
// if (app['_rendering']) {
if (!app['_rendered']) {
requestAnimationFrame(() => {
whenRendered(app, callback);
});
} else {
callback();
}
} |
I just put up a PR to fix this: #29 (the exception, not the docuementation) |
The rendering engine changed from sync to async. Edit your main.ts.
to
That should fix your web component. |
The text was updated successfully, but these errors were encountered: