Skip to content

How can I use Vue's render() function with Quasar components? #17792

Discussion options

You must be logged in to vote

If you mean import { render } from 'vue', then it won't work if you are using any plugin, e.g. Quasar, vue-i18n, vue-router, Pinia, etc. Since evt.toolTip is an existing DOM element, you can use const tooltipApp = createApp(GraphTooltip), copy things from your original app instance, then do tooltipApp.mount(toolTip).

For copying stuff from the main to the child app, you can take this as an example:

export function createChildApp (appCfg, parentApp) {
const app = createApp(appCfg)
app.config.globalProperties = parentApp.config.globalProperties
const { reload, ...appContext } = parentApp._context

Replies: 1 comment 4 replies

Comment options

You must be logged in to vote
4 replies
@yusufkandemir
Comment options

@wiese42
Comment options

@yusufkandemir
Comment options

Answer selected by wiese42
@wiese42
Comment options

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