We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
In a vue project using vuex for state management, a simple getter is failing to evaluate and is instead therfore:
store.js `import Vue from "vue"; import Vuex from "vuex";
Vue.use(Vuex);
export default { state: { counter: 10 }, getters: { counter: state => { return state.counter; } } };`
when called this getter returns:
function counter(state) { return state.counter; }
instead of the value 10 Link to my sandbox https://codesandbox.io/s/kw2wox9mlr
The text was updated successfully, but these errors were encountered:
Looks like you fixed it?
Sorry, something went wrong.
Closing as issue seems to be fixed
No branches or pull requests
🐛 bug report
In a vue project using vuex for state management, a simple getter is failing to evaluate and is instead
therfore:
store.js
`import Vue from "vue";
import Vuex from "vuex";
Vue.use(Vuex);
export default {
state: {
counter: 10
},
getters: {
counter: state => {
return state.counter;
}
}
};`
when called this getter returns:
function counter(state) { return state.counter; }
instead of the value 10
Link to my sandbox https://codesandbox.io/s/kw2wox9mlr
The text was updated successfully, but these errors were encountered: