From: Eduardo San Martin Morote Date: Fri, 25 Sep 2020 09:21:47 +0000 (+0200) Subject: build: fix changelog [skip ci] X-Git-Tag: v2.0.0-alpha.3~13 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=780b84008676624667834043707c87199cb61b4a;p=thirdparty%2Fvuejs%2Fpinia.git build: fix changelog [skip ci] --- diff --git a/CHANGELOG.md b/CHANGELOG.md index 8c6bb113..1068312c 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -13,6 +13,6 @@ ### BREAKING CHANGES -- there is no longer a `state` property on the store, - you need to directly access it. `getters` no longer receive parameters, +- `state` properties no longer need to be accessed through `store.state` +- `getters` no longer receive parameters, access the store instance via `this`: directly call `this.myState` to read state and other getters. diff --git a/README.md b/README.md index a8997bfb..621fa563 100644 --- a/README.md +++ b/README.md @@ -6,7 +6,7 @@ 🍍Automatically Typed, Modular and lightweight (but **Experimental**) Store for Vue 3.x based on the composition api with devtools support -## 👉 [Demo on CodeSandbox](https://8jwbf.sse.codesandbox.io) +## 👉 [Demo on CodeSandbox](https://j4qzw.csb.app/) ⚠️⚠️⚠️ This project is experimental, it's an exploration of what a _Store_ could be like using [the composition api](https://vue-composition-api-rfc.netlify.com). It works both for Vue 2.x and Vue 3.x and you are currently on the branch that supports Vue 3.x. [Go here for the Vue 2.x compatible version](https://github.com/posva/pinia/tree/v1). @@ -57,10 +57,9 @@ A few notes about the project and possible questions: ## Roadmap / Ideas -- [ ] Should the state be merged at the same level as actions and getters? +- [x] Should the state be merged at the same level as actions and getters? - [ ] Allow grouping stores together into a similar structure and allow defining new getters (`pinia`) - [ ] Getter with params that act like computed properties (@ktsn) -- [ ] Passing all getters to a getter (need Typing support) ## Installation