[Vuejs]-Vue Pinia: Toggle function toggles just once and not back

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()
}

Leave a comment