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

为什么这里要注释? #34

Closed
chakhsu opened this issue Aug 26, 2017 · 1 comment
Closed

为什么这里要注释? #34

chakhsu opened this issue Aug 26, 2017 · 1 comment

Comments

@chakhsu
Copy link
Contributor

chakhsu commented Aug 26, 2017

// initialState: undefined,

跟文档描述有点不一致

mirror.defaults is a pretty intuitive API, you use it to configure your Mirror app.

  • options.initialState

Default: undefined

options.initialState如果默认是空对象,也比默认是undefined要强吧~

@llh911001
Copy link
Member

没有关系的,看一下 Redux 的源码,createStore 时候传的 preloadedState 默认是 undefined

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