Mattermost-server: Remove deprecated lifecycle methods from System Console

Created on 24 Sep 2019  路  1Comment  路  Source: mattermost/mattermost-server

The following React lifecycle methods have been deprecated by React and will start to be removed starting in React 17:

  • componentWillMount
  • componentWillReceiveProps
  • componentWillUpdate

The React team has published a guide discussing the changes and how to migrate to the new lifecycle methods here: https://reactjs.org/blog/2018/03/27/update-on-async-rendering.html

As part of a campaign to remove these methods from https://github.com/mattermost/mattermost-webapp, these methods should be replaced in the following files:

  • components/analytics/line_chart.jsx
  • components/admin_console/system_users/list/system_users_list.jsx
  • components/admin_console/manage_tokens_modal/manage_tokens_modal.jsx
  • components/admin_console/manage_roles_modal/manage_roles_modal.jsx

If you're interested please comment here and come join our "Contributors" community channel on our daily build server, where you can discuss questions with community members and the Mattermost core team. For technical advice or questions, please join our "Developers" community channel.

New contributors please see our Developer's Guide.

JIRA: https://mattermost.atlassian.net/browse/MM-18776

AreTechnical Debt Medium Help Wanted PR Exists TecReactJS

Most helpful comment

Hi @hanzei,

I'd love go give this one a go 馃檪

>All comments

Hi @hanzei,

I'd love go give this one a go 馃檪

Was this page helpful?
0 / 5 - 0 ratings