3👍
A computed is supposed to return a value, it’s a mistake to do side effects inside of it.
Should be:
const toggleBox = () => {
store.toggleFunktion()
}
Source:stackexchange.com
3👍
A computed is supposed to return a value, it’s a mistake to do side effects inside of it.
Should be:
const toggleBox = () => {
store.toggleFunktion()
}