Skip to content

Calling a getter with a parameter from inside a component (TypeError: getter is not a function) #1194

Discussion options

You must be logged in to vote

@sergiomartindev , have a try like this.

import { useTestStore } from './stores/test';
import { computed } from "@vue/reactivity";

const testStore = useTestStore();

const counterMultipliedByThree =  computed(()=>testStore.counterMultipliedBy(3));

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@posva
Comment options

Answer selected by sergiomartindev
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
3 participants