-
-
Notifications
You must be signed in to change notification settings - Fork 2.8k
New issue
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
Supporting async/await in no-did-mount-setstate
rule
#1996
base: master
Are you sure you want to change the base?
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks, this is a great start, but I think it'd need lots more test cases.
no-did-mount-setstate
rule (fixes #1110)no-did-mount-setstate
rule
Sure. Do you have some in mind? |
Things mentioned in the linked issue; |
That's much more difficult... |
I feel like we may have to track all It’s certainly a very hard problem. |
59af733
to
865ed16
Compare
069314a
to
181c68f
Compare
380e32c
to
51d342b
Compare
Pretty naive approach: checking if the call is in an
async
method and if anawait
is found beforesetState
(going over tokens).Fixes #1110.