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 hook_optimizer transform #41203

Merged
merged 2 commits into from Oct 6, 2022

Commits on Oct 6, 2022

  1. Remove hook_optimizer transform

    Fixes an issue where `const […foo] = useState(0)` is improperly transformed into `const { 0: …foo } = useState(0)`.
    
    The hook optimizer was useful when hooks first came out, primarily because browsers had never optimized array destructuring. But current browsers have, and the optimization doesn't help anymore.
    jridgewell committed Oct 6, 2022
    Configuration menu
    Copy the full SHA
    f5661cd View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    aa7b7e6 View commit details
    Browse the repository at this point in the history