atom/github

Replace getDerivedStateFromProps with memoization

Open

#1.611 geöffnet am 26. Juli 2018

Auf GitHub ansehen
 (0 Kommentare) (0 Reaktionen) (0 zugewiesene Personen)JavaScript (1.069 Stars) (469 Forks)batch import
code-cleanup :wrench:good first issue

Beschreibung

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

Contributor Guide