Closed atomiks closed 8 months ago
FWIW, the playground doesn't seem to error for some reason, but a fresh install of 1.4.1 does. Might be missing something basic?
That's because the playground uses the latest code we have on main
. This means that the issue is fixed and it will be available in the next release.
Gotcha, thanks
Environment information
Rule name
useExhaustiveDependencies
Playground link
https://biomejs.dev/playground/?code=aQBtAHAAbwByAHQAIAAqACAAYQBzACAAUgBlAGEAYwB0ACAAZgByAG8AbQAgACcAcgBlAGEAYwB0ACcAOwAKAAoAZgB1AG4AYwB0AGkAbwBuACAAdQBzAGUAQQBwAHAAKAApACAAewAKACAAIABjAG8AbgBzAHQAIAByAGUAZgAgAD0AIABSAGUAYQBjAHQALgB1AHMAZQBSAGUAZgAoAG4AdQBsAGwAKQA7AAoAIAAgAFIAZQBhAGMAdAAuAHUAcwBlAEUAZgBmAGUAYwB0ACgAKAApACAAPQA%2BACAAewAKACAAIAAgACAAcgBlAGYALgBjAHUAcgByAGUAbgB0ADsACgAgACAAfQAsACAAWwBdACkAOwAKAH0ACgA%3D
Expected result
It errors when you use
React.useRef()
:But doesn't error when importing separately:
The error:
FWIW, the playground doesn't seem to error for some reason, but a fresh install of
1.4.1
does. Might be missing something basic?Code of Conduct