🐛 useExhaustiveDependencies
: bug with useContext
/useSyncExternalStore
and dependency arrays?
#609
Closed
1 task done
Labels
A-Linter
Area: linter
L-JavaScript
Language: JavaScript and super languages
S-Bug-confirmed
Status: report has been confirmed as a valid bug
Environment information
https://biomejs.dev/playground/?indentStyle=space"eStyle=single&trailingComma=none&code=aQBtAHAAbwByAHQAIAB7ACAAdQBzAGUARQBmAGYAZQBjAHQALAAgAHUAcwBlAFMAeQBuAGMARQB4AHQAZQByAG4AYQBsAFMAdABvAHIAZQAgAH0AIABmAHIAbwBtACAAJwByAGUAYQBjAHQAJwA7AAoACgBlAHgAcABvAHIAdAAgAGYAdQBuAGMAdABpAG8AbgAgAHUAcwBlAEQAYQB0AGEAKAApACAAewAKACAAIABjAG8AbgBzAHQAIABkAGEAdABhACAAPQAgAHUAcwBlAFMAeQBuAGMARQB4AHQAZQByAG4AYQBsAFMAdABvAHIAZQAoAHMAdQBiAHMAYwByAGkAYgBlACwAIABnAGUAdABTAG4AYQBwAHMAaABvAHQAKQA7AAoACgAgACAAdQBzAGUARQBmAGYAZQBjAHQAKAAoACkAIAA9AD4AIAB7AAoAIAAgACAAIABjAG8AbgBzAG8AbABlAC4AbABvAGcAKABkAGEAdABhACkAOwAKACAAIAB9ACwAIABbAGQAYQB0AGEAXQApADsACgB9AAoA
https://biomejs.dev/playground/?indentStyle=space"eStyle=single&trailingComma=none&code=aQBtAHAAbwByAHQAIAB7ACAAdQBzAGUARQBmAGYAZQBjAHQALAAgAHUAcwBlAEMAbwBuAHQAZQB4AHQAIAB9ACAAZgByAG8AbQAgACcAcgBlAGEAYwB0ACcAOwAKAAoAZQB4AHAAbwByAHQAIABmAHUAbgBjAHQAaQBvAG4AIAB1AHMAZQBEAGEAdABhACgAKQAgAHsACgAgACAAYwBvAG4AcwB0ACAAZABhAHQAYQAgAD0AIAB1AHMAZQBDAG8AbgB0AGUAeAB0ACgAQwBvAG4AdABlAHgAdAApADsACgAKACAAIAB1AHMAZQBFAGYAZgBlAGMAdAAoACgAKQAgAD0APgAgAHsACgAgACAAIAAgAGMAbwBuAHMAbwBsAGUALgBsAG8AZwAoAGQAYQB0AGEAKQA7AAoAIAAgAH0ALAAgAFsAZABhAHQAYQBdACkAOwAKAH0ACgA%3D
What happened?
Biome incorrectly flags values returned by
useContext
/useSyncExternalStore
as being unnecessary in dependency arrays (useEffect
,useMemo
, ...)Expected result
Biome should allow values returned by
useContext
/useSyncExternalStore
to be in dependency arrays.Code of Conduct
The text was updated successfully, but these errors were encountered: