AgileVentures / AgileVentures/WebsiteOne-FE

Unsafe componentWillReceiveProps lifecycle hook

未關閉
#165 0 則留言 0 個 reaction 已指派 1 人 已指派給 @jmpainter 在 GitHub 檢視
review
主要語言
JavaScript
星號
3
分支
22
PR 合併指標
30 天內沒有已合併 PR

描述

We're using the lifecycle hook which is considered to be unsafe and will be deprecated in React v17. We should replace it with another solution. Check - https://reactjs.org/docs/react-component.html#unsafe_componentwillreceiveprops for problem description and possible solutions.

## Expected Behavior
Components load correctly without using `componentWillReceiveProps` lifecycle hook.

## Current Behavior
We're using `componentWillReceiveProps` lifecycle hook.

## Possible Solution
https://reactjs.org/blog/2018/06/07/you-probably-dont-need-derived-state.html

貢獻指南

這個儲存庫沒有索引到貢獻指南

評估

這個 Issue 還沒有評估資料。

把新 issue 寄到你的電子郵件信箱

精選適合新手參與的 GitHub issue 摘要。