How to use overmind-vue - 1 common examples

To help you get started, we’ve selected a few overmind-vue examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github cerebral / overmind / packages / demos / vue-todomvc / src / app / index.js View on Github external
addTodo({ value: event, state }) {
      event.preventDefault()
      state.todos.unshift({
        id: String(Date.now()),
        title: state.newTodoTitle,
        completed: false,
      })
      state.newTodoTitle = ''
    },
    toggleCompleted({ value: todo }) {
      todo.completed = !todo.completed
    },
  },
})

export const connect = createConnect(app)

export default app

overmind-vue

Functional actions

MIT
Latest version published 10 months ago

Package Health Score

69 / 100
Full package analysis

Popular overmind-vue functions