This is a migrated thread and some comments may be shown as answers.

Grid - Update warning

1 Answer 136 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Tomasz
Top achievements
Rank 1
Tomasz asked on 30 Sep 2019, 03:49 PM

Hello,

I am receiving warnings in console when implementing Kendo React Grid with following content:

Warning: componentWillReceiveProps has been renamed, and is not recommended for use. See https://fb.me/react-async-component-lifecycle-hooks 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.
 
Please update the following components: KendoReactGrid

 

 

When opening stackblitz url from Getting Started section for Grid i receive the same warning.

Regards,

Tomek

1 Answer, 1 is accepted

Sort by
0
Stefan
Telerik team
answered on 01 Oct 2019, 05:57 AM

Hello, Tomasz,

The team is actively working on this.

The reason is that the componentWillReceiveProps method is being deprecated by React and it is still used in the Grid.

The team is reworking the component os it does not use this method anymore.

The component will still work as expected, it is just a warning from React reminding us, that it has to be replaced soon.

Regards,
Stefan
Progress Telerik

Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Feedback Portal and vote to affect the priority of the items
Tags
General Discussions
Asked by
Tomasz
Top achievements
Rank 1
Answers by
Stefan
Telerik team
Share this question
or