atom/github

Replace getDerivedStateFromProps with memoization

Open

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

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

倉庫指標

Star
 (1,069 star)
PR 合併指標
 (30 天內沒有已合併 PR)

描述

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

貢獻者指南