npm @pinia/nuxt 0.1.0
🚀 Release 0.1.0

latest releases: 0.7.0, 0.6.1, 0.6.0...
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 nuxt release

NewReleases is sending notifications on new releases.