atom/github

Replace getDerivedStateFromProps with memoization

Open

#1,611 建立於 2018年7月26日

在 GitHub 查看
 (0 留言) (0 反應) (0 負責人)JavaScript (1,069 star) (469 fork)batch import
code-cleanup :wrench:good first issue

描述

Where possible, it would be cleaner and less error-prone to replace components that implement static getDerivedStateFromProps() with PureComponents or memoize-one:

貢獻者指南

Replace getDerivedStateFromProps with memoization · atom/github#1611 | Good First Issue