Vuex

What the heck?

The State Problem

  • Passing Props
  • Reacting to Events
  • Increasing Complexity
  • Action!

Solution Requirements

  • Should be able to pass props to any component
  • Should be able to react to events from anywhere
  • Should be reactive
  • Should be THE one place to go to

Solving Events

Solving Props

Understanding what we just did

Can we abstract all of this away?

Introducing Flux

State

Getters

Actions

Mutations

Modules

  • State
  • Getters
  • Mutations
  • Actions

Vuex - What the heck?

By Praveen Puglia

Vuex - What the heck?

  • 1,056