Skip to content

Commit

Permalink
Merge branch 'dev' into 4.0
Browse files Browse the repository at this point in the history
# Conflicts:
#	CHANGELOG.md
#	dist/logger.js
#	dist/vuex.common.js
#	dist/vuex.esm.browser.js
#	dist/vuex.esm.browser.min.js
#	dist/vuex.esm.js
#	dist/vuex.js
#	dist/vuex.min.js
#	package.json
#	yarn.lock
  • Loading branch information
kiaking committed Aug 4, 2020
2 parents 83bc26f + 4b038d7 commit 2351c22
Show file tree
Hide file tree
Showing 5 changed files with 7 additions and 9 deletions.
2 changes: 2 additions & 0 deletions docs/guide/modules.md
Original file line number Diff line number Diff line change
Expand Up @@ -151,6 +151,7 @@ modules: {
someGetter (state, getters, rootState, rootGetters) {
getters.someOtherGetter // -> 'foo/someOtherGetter'
rootGetters.someOtherGetter // -> 'someOtherGetter'
rootGetters['bar/someOtherGetter'] // -> 'bar/someOtherGetter'
},
someOtherGetter: state => { ... }
},
Expand All @@ -161,6 +162,7 @@ modules: {
someAction ({ dispatch, commit, getters, rootGetters }) {
getters.someGetter // -> 'foo/someGetter'
rootGetters.someGetter // -> 'someGetter'
rootGetters['bar/someGetter'] // -> 'bar/someGetter'

dispatch('someOtherAction') // -> 'foo/someOtherAction'
dispatch('someOtherAction', null, { root: true }) // -> 'someOtherAction'
Expand Down
2 changes: 1 addition & 1 deletion docs/kr/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ new Vue({

이는 [Flux](https://facebook.github.io/flux/docs/overview), [Redux](http://redux.js.org/), [The Elm Architecture](https://guide.elm-lang.org/architecture/)에서 영감을 받은 Vuex의 기본 아이디어 입니다. 다른 패턴과 달리 Vuex는 Vue.js가 효율적인 업데이트를 위해 세분화된 반응 시스템을 활용하도록 특별히 고안된 라이브러리입니다.

대화식으로 Vuex를 배우고 싶다면 [Scrimba]((https://scrimba.com/g/gvuex))의 Vuex 과정에 등록하십시오.
대화식으로 Vuex를 배우고 싶다면 [Scrimba](https://scrimba.com/g/gvuex)의 Vuex 과정에 등록하십시오.

![vuex](/vuex.png)

Expand Down
2 changes: 1 addition & 1 deletion docs/zh/guide/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
import Vue from 'vue'
import Vuex from 'vuex'

Vue.use(Vuex);
Vue.use(Vuex)

const store = new Vuex.Store({
state: {
Expand Down
6 changes: 1 addition & 5 deletions examples/classic/counter-hot/store/getters.js
Original file line number Diff line number Diff line change
@@ -1,11 +1,7 @@
export const count = state => state.count

const limit = 5

export const recentHistory = state => {
const end = state.history.length
const begin = end - limit < 0 ? 0 : end - limit
return state.history
.slice(begin, end)
.slice(-5)
.join(', ')
}
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -77,8 +77,8 @@
"vue": "^3.0.0-beta.10",
"vue-loader": "^16.0.0-beta.1",
"vue-template-compiler": "^2.5.22",
"vuepress": "^0.14.1",
"vuepress-theme-vue": "^1.1.0",
"vuepress": "^0.14.11",
"vuepress-theme-vue": "^1.1.1",
"webpack": "^4.43.0",
"webpack-dev-middleware": "^3.7.2",
"webpack-hot-middleware": "^2.25.0"
Expand Down

0 comments on commit 2351c22

Please sign in to comment.