npm pinia 0.1.0
🚀 Release 0.1.0

latest releases: 2.1.8-beta.0, 2.1.7, 2.1.6...
3 years ago
  • feat: access the state and getters through this (#190) (7bb7733)
  • refactor: use defineComponent (cae8fca)

Breaking changes

There is no longer a state property on the store, you need to directly access any property

store.state.counter
// becomes
store.counter

getters no longer receive parameters, directly call this.myState to read state and other getters:

getters: {
  doubleCount: state => state.counter * 2
  // becomes
  doubleCounte() {
    return this.counter * 2
  }
}

More at #190

Don't miss a new pinia release

NewReleases is sending notifications on new releases.