Exhaustive deps for tanstack query (formerly react-query) #6538
adamjedlicka
started this conversation in
Rule suggestion
Replies: 1 comment 1 reply
-
https://tanstack.com/query/v4/docs/eslint/eslint-plugin-query |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Eslint plugin for tanstack query has a super useful rule - exhaustive deps: https://tanstack.com/query/latest/docs/eslint/exhaustive-deps . It works like exhaustive deps for basic react hooks like useMemo but the useQuery has different function signature so I can't configure the exhaustive deps biome rule to also apply to useQuery. And because the rule is quite "complicated" I dont think it is doable in gritql. Tanstack query is one of the most popular react libraries and this is imho the essential linter rule for it so it would be great if biome had it.
Beta Was this translation helpful? Give feedback.
All reactions