Skip to content
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

effects 命名有要求吗? #63

Closed
wangguohao opened this issue Sep 2, 2016 · 1 comment
Closed

effects 命名有要求吗? #63

wangguohao opened this issue Sep 2, 2016 · 1 comment

Comments

@wangguohao
Copy link

命名为
fuzzyQueryCourse
queryCollection
均无法调用,在后面加上数字就可以(eg:fuzzyQueryCourse1)...

还有,effects中可以调用当前model中的其他effects吗?
业务场景:
1.获取视频列表
2.修改查询条件,获取视频列表

我现在的做法,是先disptach 修改条件,再dispatch获取视频列表

@sorrycc
Copy link
Member

sorrycc commented Sep 2, 2016

  1. 命名没要求,你怎么调用的?
  2. 可以调用其他 effects,yield put({ type: 'effectName' })
  3. 异步的串联推荐放在 effects 里做,不要放在外面 dispatch 多个

@sorrycc sorrycc closed this as completed Sep 7, 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

No branches or pull requests

2 participants