Skip to content
New issue

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

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

Already on GitHub? Sign in to your account

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

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

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

No branches or pull requests

2 participants