-
Notifications
You must be signed in to change notification settings - Fork 47k
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
rename useImperativeMethods -> useImperativeHandle #14565
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.
Seems legit.
@@ -174,7 +174,7 @@ function useImperativeMethods<T>( | |||
instance = ref.current; | |||
} | |||
hookLog.push({ | |||
primitive: 'ImperativeMethods', | |||
primitive: 'ImperativeHandle', |
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.
Heads up to @bvaughn in case DevTools reads this
*Do not merge this just yet*. We're in the process of renaming this function (in facebook/react#14565), so making a followup PR here for when we do land it. Thanks very much!
Thanks for the heads up Sunil. If only DevTools just "read" that 😅 Right now, I've had to fork that file into DevTools entirely. So I'll need to copy over this change too. |
Summary: To stay in sync with the change made in facebook/react#14565 Disclaimer: These changes were manual and I'm going to let CI verify them. I'm having trouble actually building Flow locally and running tests. `make` fails with > hh_shared.c:1524:16: error: conflicting types for 'hh_collect' CAMLprim value hh_collect(void) { ^ > .../flow/_build/hack/heap/hh_shared.h:56:16: note: previous declaration is here CAMLprim value hh_collect(value aggressive_val); ^ hh_shared.c:2670:16: error: conflicting types for 'hh_save_dep_table_sqlite' CAMLprim value hh_save_dep_table_sqlite( ^ .../flow/_build/hack/heap/hh_shared.h:106:16: note: previous declaration is here CAMLprim value hh_save_dep_table_sqlite( Pull Request resolved: #7352 Reviewed By: bvaughn Differential Revision: D13653071 Pulled By: jbrown215 fbshipit-source-id: 9bcb185e62b6b01ecc05a07c57f6694c87b15229
just a project-wide search/replace. I'll send changes for docs in a bit too.
I have done the builds, run the tests, linted and flow checked.