Skip to content

Conversation

@mlocati
Copy link
Contributor

@mlocati mlocati commented Oct 30, 2025

When we need to use the ConcreteCMS Vue components, we have to do something like this:

function create() {
    Concrete.Vue.activateContext('cms', function (Vue, config) {
        // Foo
    });
}

What about adding an easier and cleaner way to do that?

async function create() {
    const {Vue, options} = await Concrete.Vue.activateContextAsync('cms');
    // Foo
}

@mlocati mlocati force-pushed the vue-activateContextAsync branch from 2fdb5be to 217a602 Compare October 31, 2025 08:33
@aembler aembler merged commit b18dcc8 into concretecms:1.6.x Nov 4, 2025
1 check passed
@mlocati mlocati deleted the vue-activateContextAsync branch November 4, 2025 20:17
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.

2 participants