Skip to content

zh-cn-docs-patch #122

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 3 commits into from
Mar 27, 2016
Merged

zh-cn-docs-patch #122

merged 3 commits into from
Mar 27, 2016

Conversation

ryerh
Copy link
Contributor

@ryerh ryerh commented Mar 26, 2016

http://forum.vuejs.org/topic/3546 中提到了一些翻译中遇到的问题,望得到解答。

```

注意所有传递给 action 的参数同样会传递给 mutation handler.
请谨记一点,必须通过分发 mutations 来处理调用异步 API 的结果,而不是依赖返回值或者是传递回调来处理结果。基本原则就是:**Actions 除了分发 mutations 不能造成别的副作用**。
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

这里改成『Actions 除了分发 mutations 应当尽量避免其他副作用』吧,因为有时候还是有必要的。

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

已改 :)

@yyx990803 yyx990803 merged commit 5be7786 into vuejs:master Mar 27, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants