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鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

[New] Component detection: add util.isReactHookCall #3156

Merged

Commits on Dec 13, 2021

  1. [New] component detection: add util.isReactHookCall

    Rename Components test suite filename to match sibling lib/util/Components filename.
    Extend Components testComponentsDetect function to accept custom instructions, and to accumulate the results of processing those instructions.
    Add utility to check whether a CallExpression is a React hook call.
    duncanbeevers authored and ljharb committed Dec 13, 2021
    Copy the full SHA
    5a25380 View commit details
    Browse the repository at this point in the history