Skip to content
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

Merged
merged 1 commit into from
Jan 10, 2019
Merged

rename useImperativeMethods -> useImperativeHandle #14565

merged 1 commit into from
Jan 10, 2019

Conversation

threepointone
Copy link
Contributor

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.

Copy link
Collaborator

@gaearon gaearon left a 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',
Copy link
Collaborator

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

@threepointone threepointone merged commit b4ad8e9 into facebook:master Jan 10, 2019
threepointone added a commit to threepointone/DefinitelyTyped that referenced this pull request Jan 10, 2019
*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!
@bvaughn
Copy link
Contributor

bvaughn commented Jan 10, 2019

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.

facebook-github-bot pushed a commit to facebook/flow that referenced this pull request Jan 15, 2019
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
jetoneza pushed a commit to jetoneza/react that referenced this pull request Jan 23, 2019
n8schloss pushed a commit to n8schloss/react that referenced this pull request Jan 31, 2019
yesmeck added a commit to yesmeck/react-with-hooks that referenced this pull request Feb 3, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants