Skip to content

For anyone wanting to use this with vue3 #13

Description

@lk77

Hello,

i wanted to use this package with vue 3, but it's only working with vue 2, so i did this little trick to make it work :

app.use((app) => {
    let Vue = {
        mixin: (m) => {
            app.mixin(m);
        },
        prototype: {}
    };

    PubNubVue.install(Vue, {
        subscribeKey: null,
        ssl: true,
        uuid: null
    });

    Object.keys(Vue.prototype).forEach((key) => {
        app.config.globalProperties[key] = Vue.prototype[key]
    });
})

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions