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

使用mapPropsToFields,想把redux异步获得的指绑定到form上初始化数据,出现uncaught at _callee TypeError: Cannot read property 'xxx' of undefined #7589

Closed
PerkinJ opened this issue Sep 14, 2017 · 5 comments · Fixed by react-component/form#117

Comments

@PerkinJ
Copy link

PerkinJ commented Sep 14, 2017

如题,使用redux异步获取到了数据,componentWillReceiveProps不能setFiledValue,所有只能在mapPropsToFields赋值,可以却一直出现uncaught at _callee TypeError: Cannot read property 'xxx' of undefined。由于表单填写内容较多,我是通过三个表单组件都创建了form,最后在容器层,去合并数据再submit的。 每个表单组件都单独form.create的。请问是因为这个原因,导致出现uncaught at _callee TypeError: Cannot read property 'xxx' of undefined吗?但console.log(props),是可以打印出来数据的。

@ant-design-bot
Copy link
Contributor

Hello @PerkinJ, your issue has been closed because it does not conform to our issue requirements. Please use the Issue Helper to create an issue, thank you!

@ant-design-bot
Copy link
Contributor

It will be better to write your issue/comment in English, so more people can understand you.
And this means that more people can help you or benefit from your issue/comment.
See: #4897

@benjycui
Copy link
Contributor

Please provide a re-producible demo: http://codepen.io/benjycui/pen/KgPZrE?editors=001

@benjycui benjycui reopened this Sep 15, 2017
@benjycui
Copy link
Contributor

ping~ @PerkinJ

@benjycui
Copy link
Contributor

Close for no response.

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

Successfully merging a pull request may close this issue.

4 participants