You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
We have a large component that uses global components to lessen the burden of writing imports for components. We wrap this component in a web component for a while now with a piece of custom code, and we want to use the new defineCustomElement for it. However, the new API doesn't create an app context but 'simply' renders the root component. Which makes it impossible to have global components inside web components (it seems).
Is there a way to register global components for use inside web components, or a way of passing in an existing app context, or get a hold of an app context during creation?
What does the proposed API look like?
// this is inspired on how our current API looks like:
const customElement = defineCustomElement(VueComponent, (app) => {
provideContexts(app);
includeGlobalComponents(app);
});
window.customElements.define( // etc
The text was updated successfully, but these errors were encountered:
Can defineCustomElement accept a Vue App callback function. I need to export a large Vue project as a WebComponent to a React environment. The defineCustomElement is not ideal in terms of internal and external style isolation and the use of Vue middleware.
What problem does this feature solve?
We have a large component that uses global components to lessen the burden of writing imports for components. We wrap this component in a web component for a while now with a piece of custom code, and we want to use the new
defineCustomElement
for it. However, the new API doesn't create an app context but 'simply' renders the root component. Which makes it impossible to have global components inside web components (it seems).Is there a way to register global components for use inside web components, or a way of passing in an existing app context, or get a hold of an app context during creation?
What does the proposed API look like?
The text was updated successfully, but these errors were encountered: