-
Notifications
You must be signed in to change notification settings - Fork 341
Closed
Labels
bugSomething isn't workingSomething isn't working
Description
I am trying to play with the new composition API.
Installed the plugin and copied the "Basic example" from https://vue-composition-api-rfc.netlify.com/#basic-example.
It throws an exception inside the computed getter.
[Vue warn]: Error in setup(): "TypeError: Cannot read property 'count' of undefined"
found in
---> <Counter> at src/components/Counter.vue
<App> at src/App.vue
<Root>
The state is declared as follows:
setup() {
const state = reactive({
count: 0,
double: computed(() => state.count * 2)
})
//...
}Am i doing something wrong or is this not supported yet in the plugin?
Thank you.
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't working