-
-
Notifications
You must be signed in to change notification settings - Fork 4.5k
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
fix: do not format callbacks with arguments as React hooks #5778
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.
Want to do a 1.16.1 @ikatyang?
We just added a (I plan to release 1.16.1 tonight (UTC+8) if there's no more issue reported.) |
Sure, gave it a go! I'm heading to bed (2:30 here), feel free to edit it if I didn't do it correctly 🙂 |
Thanks! |
Thank you! Landed the upgrade in Jest as well - no changes from 1.15 🎉 |
I don't think presence of arguments is the best heuristic here. Why not detect non-method calls with a name matching |
Maybe it should use the Hook style if |
See discussion in #5608 (comment)
docs/
directory)✨Try the playground for this PR✨