AgileVentures / AgileVentures/WebsiteOne-FE
Unsafe componentWillReceiveProps lifecycle hook
未關閉
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 還沒有評估資料。