You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I started playing with vue 3 and vue-class-component 8. I noticed that setup is never called, not matter what I try. Here is my code:
import{SetupContext}from"vue"import{Vue,prop}from"vue-class-component"classProps{// type is: WithDefault<string>title=prop<string>({// required: truedefault: "no title"});// requiredString!: string}exportdefaultclassAppextendsVue.with(Props){setup(props: Props,{ attrs, slots, emit }: SetupContext){console.error("setup: ",props,attrs,slots,emit)}mounted(){console.error("mounted")console.log("title:",this.title)this.$nextTick(function(){// Code that will run only after the entire view has been renderedconsole.error("everything rendered")})}}
If I remove the vue-class-component, then it works. Is this simply not supported (yet) or a bug?
The text was updated successfully, but these errors were encountered:
I started playing with
vue
3 andvue-class-component
8. I noticed thatsetup
is never called, not matter what I try. Here is my code:If I remove the vue-class-component, then it works. Is this simply not supported (yet) or a bug?
The text was updated successfully, but these errors were encountered: