相关文章推荐

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

onRowClick={(record, index) => isNullOrUndefined(this.props.onClickRow) ? null : this.props.onClickRow(record)}

当我把 onRowClick 换成 onRow 之后

直接导致react报错

Uncaught Error: Maximum update depth exceeded. This can happen when a component repeatedly calls set

注意:不是用 http://new-issue.ant.design 创建的 issue 会被立即关闭。

Hello @ywww , 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!

你好 @ywww ,为了能够进行高效沟通,我们对 issue 有一定的格式要求,你的 issue 因为不符合要求而被自动关闭。你可以通过 issue 助手 来创建 issue 以方便我们定位错误。谢谢配合!

If you still getting this issue : Warning: onRowClick is deprecated, please use onRow instead.
you can fixed this issue by trying this:

onRow={(record) => ({ onClick: () => { this.someClick(record.key) } })}
 
推荐文章