atom/github

Replace getDerivedStateFromProps with memoization

Open

#1.611 aberto em 26 de jul. de 2018

Ver no GitHub
 (0 comments) (0 reactions) (0 assignees)JavaScript (469 forks)batch import
code-cleanup :wrench:good first issue

Métricas do repositório

Stars
 (1.069 stars)
Métricas de merge de PR
 (Nenhuma PRs mesclada em 30d)

Description

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

Guia do colaborador