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

Remove config argument from useTransition #19719

Merged
merged 1 commit into from
Aug 28, 2020

Commits on Aug 28, 2020

  1. Remove config argument from useTransition

    And `useDeferredValue`.
    
    The options were already disabled in previous commits, so this doesn't
    change any behavior. I upated type signatures and cleaned up the hook
    implementation a bit — no longer have to wrap the `start` method with
    `useCallback`, because its only remaining dependency is a `setState`
    method, which never changes. Instead, we can store the `start` method
    on a ref.
    acdlite committed Aug 28, 2020
    Configuration menu
    Copy the full SHA
    219839f View commit details
    Browse the repository at this point in the history