[Compiler Bug]: eslint plugin erroneously flags third-party functions starting with "use" as hooks #32109
Open
1 of 4 tasks
Labels
Component: Optimizing Compiler
Status: Unconfirmed
A potential issue that we haven't yet confirmed as a bug
Type: Bug
What kind of issue is this?
Link to repro
https://playground.react.dev/#N4Igzg9grgTgxgUxALhASwLYAcIwC4AEwBUYCAMgIYCe0eAogGaMJyEC+BjMEGBA5DASU2-ANwAdAHaYc+AgCoClMMowBhABaV8q7rwEABShjjbdAehNmdeMABYLcXAnHTpCAB5zCAEwSMlFAANoSMUFJsaBBSBACy1ACCWFgAFACURNIEJGRUtFAMzKx4qRkEALwAfFmxOWpatmAAdKQIACqaCBgIqVIhwemSdewANAQA2gC66e51QniwsanZ9QA8vmgAbgQWVauzUuzSIOxAA
Repro steps
In the simplified playground example above, I'm using
amCharts.useTheme
which is not a hook at all, just a random function of an external library that happen to start with use.How often does this bug happen?
Every time
What version of React are you using?
[email protected]
What version of React Compiler are you using?
[email protected]
The text was updated successfully, but these errors were encountered: