- 博客(2)
- 收藏
- 关注
原创 react常见的 Warning:Using UNSAFE_componentWillReceiveProps in strict mode is not recommended and may...
1.这个错误的意思 警告:不建议在严格模式下使用UNSAFE_componentWillReceiveProps,可能会提示代码中的bug。详情请参见https://reactjs.org/link/unsafe-component-lifecycles 将数据获取代码或副作用移动到componentDidUpdate。 如果在props更改时更新状态,请重构代码以使用memoization技术或将其移动到静态getDerivedStateFromProps。更多信息请访问:https://react
2022-04-15 14:57:36
1609
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人