-
Notifications
You must be signed in to change notification settings - Fork 8
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
第十二节课问题收集 #25
Comments
老师能否介绍一下,如何在reducer 之间共享 state,现在找到的一个方案是使用reduce-reducer库 |
首先这是一种所谓的redux反模式
|
异步action的方案,老师在项目中觉得最顺手的是哪个呢,redux-thunk还是redux-saga,saga很强大,但是相对麻烦一点,最近在考虑在项目中要不要上saga |
我们现在用的是redux-thunk,但是如你所说redux-saga更强大,至少可以帮我们节约一些模板代码,比如现在我们要引用一堆action,所以我们也在考虑找个项目试用saga |
|
|
核心api: 考虑到react ssr一般都是同构的方案,但是服务端是没有浏览器的api的,所以在组件的constructor, render等方法中不能出现浏览器的api。
做兜底 利用https://nodejs.org/dist/latest-v11.x/docs/api/domain.html 做请求级的用户上下文环境 或者直接使用https://github.com/zeit/next.js 这样的方案 |
No description provided.
The text was updated successfully, but these errors were encountered: