You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@ljharb Thank you. Actually, we are using static get defaultProps() in our project in order to avoid memory leak.
However, besides performance problem of this pattern (maybe anti-pattern), I think static getters should be treated as static or static getters rather than common getters.
Configuration (airbnb):
Here is a simple example:
It causes an error on
static get defaultProps()
and error message isgetter functions should be placed after shouldComponentUpdate [react/sort-comp]
.The text was updated successfully, but these errors were encountered: