请选择 进入手机版 | 继续访问电脑版

liumingyi_1

注册会员

1

主题

2

帖子

19

积分

注册会员

积分
19
最新发帖
liumingyi_1
注册会员   /  发表于:2020-2-26 18:29  /   查看:4797  /  回复:3
1金币
Warning: componentWillReceiveProps has been renamed, and is not recommended for use. See https://fb.me/react-unsafe-component-lifecycles for details.

* Move data fetching code or side effects to componentDidUpdate.
* If you're updating state whenever props change, refactor your code to use memoization techniques or move it to static getDerivedStateFromProps. Learn more at: https://fb.me/react-derived-state
* Rename componentWillReceiveProps to UNSAFE_componentWillReceiveProps to suppress this warning in non-strict mode. In React 17.x, only the UNSAFE_ name will work. To rename all deprecated lifecycles to their new names, you can run `npx react-codemod rename-unsafe-lifecycles` in your project source folder.

导致表格样式错乱,无法正常渲染

最佳答案

查看完整内容

产品安装包中有React的例子,您可以运行看一下,如果没有解决您的问题,可以将你的工程以附件上传,我们具体看一下问题

3 个回复

最佳答案
最佳答案
Fiooona
论坛元老   /  发表于:2020-2-26 18:29:24
来自 2#

产品安装包中有React的例子,您可以运行看一下,如果没有解决您的问题,可以将你的工程以附件上传,我们具体看一下问题

本帖子中包含更多资源

您需要 登录 才可以下载或查看,没有帐号?立即注册

x
组件化表格编辑器(预览版)试用进行中,点击了解详情!
请点击评分,对我的服务做出评价!5分为非常满意!
回复 使用道具 举报
liumingyi_1
注册会员   /  发表于:2020-4-17 10:31:49
3#
这不是我的问题,这是 spread-sheets-react 的问题,用了 react 即将删除的api 一直报 warning。
回复 使用道具 举报
Fiooona
论坛元老   /  发表于:2020-4-17 23:51:43
4#
可以提供下能复现这个问题的具体步骤?
组件化表格编辑器(预览版)试用进行中,点击了解详情!
请点击评分,对我的服务做出评价!5分为非常满意!
回复 使用道具 举报
您需要登录后才可以回帖 登录 | 立即注册
返回顶部