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

Add bindings for useTransition hook #512

Merged
merged 2 commits into from
Apr 27, 2020
Merged

Add bindings for useTransition hook #512

merged 2 commits into from
Apr 27, 2020

Conversation

kiangtengl
Copy link
Contributor

This PR adds bindings for the useTransition hook for React (experimental)

  • useTransition
  • useTransitionWithConfig // calls useTransition with the specified config

@rickyvetter don't land until it's released in React

This PR adds bindings for the useTransition hook for React (experimental)
- useTransition
- useTransitionWithConfig // calls useTransition with the specified config

@rickyvetter  don't land until it's released in React
Copy link
Contributor

@rickyvetter rickyvetter left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks @kiangtengl! Will add once the React API is finalized.

src/React.re Outdated Show resolved Hide resolved
@@ -390,3 +390,10 @@ external useImperativeHandle7:

[@bs.set]
external setDisplayName: (component('props), string) => unit = "displayName";

[@bs.deriving abstract]
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Note here for me mostly - drop this if we end up bumping BS min version to record as obj support.

@peterpme
Copy link
Collaborator

Hey @kiangtengl

If you don't mind, can you please update these changes and we can merge this in, thank you!

@rickyvetter rickyvetter merged commit 5535044 into reasonml:master Apr 27, 2020
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.

3 participants