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

关于redux使用过程中的所思所想 #10

Open
programmer-yang opened this issue Aug 30, 2019 · 1 comment
Open

关于redux使用过程中的所思所想 #10

programmer-yang opened this issue Aug 30, 2019 · 1 comment

Comments

@programmer-yang
Copy link
Owner

写这篇blog的原因在于我今天早上在看一篇文章的时候,忽然想通了一个很久前别人问我的关于redux的问题,想一想,觉得还是记录下来,然后顺便再捋一捋redux相关的内容

为什么要写那么多不同的reducers,而不是写一个,想存什么就传什么

我现在的答案是:为了增加改变数据状态的成本
抽空来完善这个问题

@dontdrinkmylemontea
Copy link

我现在写model就是写一个reducer啊

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