We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
React enforces getDerivedStateFromProps to be static method. When I use it as instance method i get this error in browser
It would be great if eslint could check for this error and warn me in case I forget to place "static" before my "getDerivedStateFromProps".
I'd write this rule myself but I don't have enough free time and lack knowledge of how to write eslint rules properly.
The text was updated successfully, but these errors were encountered:
That seems reasonable (although your tests should have caught that too). Seems like something no-typos could handle?
no-typos
Sorry, something went wrong.
Successfully merging a pull request may close this issue.
React enforces getDerivedStateFromProps to be static method.
When I use it as instance method i get this error in browser
It would be great if eslint could check for this error and warn me in case I forget to place "static" before my "getDerivedStateFromProps".
I'd write this rule myself but I don't have enough free time and lack knowledge of how to write eslint rules properly.
The text was updated successfully, but these errors were encountered: