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

61.redux的工作流程? #61

Open
wqjiao opened this issue May 14, 2020 · 0 comments
Open

61.redux的工作流程? #61

wqjiao opened this issue May 14, 2020 · 0 comments

Comments

@wqjiao
Copy link
Owner

wqjiao commented May 14, 2020

首先,用户(通过View)发出Action,发出方式就用到了dispatch方法。
然后,Store自动调用Reducer,并且传入两个参数:当前State和收到的Action,Reducer会返回新的State
最后,State一旦有变化,Store就会调用监听函数,来更新View。

参考 2019年17道高频面试题及详解

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

1 participant