atom/github

Replace getDerivedStateFromProps with memoization

Open

#1611 aperta il 26 lug 2018

Vedi su GitHub
 (0 commenti) (0 reazioni) (0 assegnatari)JavaScript (469 fork)batch import
code-cleanup :wrench:good first issue

Metriche repository

Star
 (1069 star)
Metriche merge PR
 (Nessuna PR mergiata in 30 g)

Descrizione

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

Guida contributor