Skip to content

8.0.0 setup() hook isn't called inside of @Options? #610

New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Open
mattsteve opened this issue May 31, 2022 · 1 comment
Open

8.0.0 setup() hook isn't called inside of @Options? #610

mattsteve opened this issue May 31, 2022 · 1 comment

Comments

@mattsteve
Copy link

mattsteve commented May 31, 2022

If I declare a setup hook inside the options decorator, or inside the class itself, it isn't running. Is this intentional?

import { Options, Vue } from 'vue-class-component';
@Options({
    setup() {
        console.log('setup');
    }
})
export default class MyComponent extends Vue {}
@ruixiaozi
Copy link

ruixiaozi commented Jul 3, 2022

@mattsteve Ref:Composition functions support and this value changes #416

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants