You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
trpc.useQuery() is not linted by eslint-plugin-react-hooks #2330
Activity
iway1 commentedon Aug 3, 2022
I just do this:
Then use those in components directly. It's just more dev friendly IMO to import useQuery or useMutation instead of doing
trpc.useQueryKATT commentedon Aug 3, 2022
Interesting, I didn't know this! Do you know which lint rule it is? I'd like to open an issue
itsMapleLeaf commentedon Aug 3, 2022
The lint rule is
react-hooks/rules-of-hooks, and it lives on the react repo https://github.com/facebook/react/tree/main/packages/eslint-plugin-react-hooksKATT commentedon Aug 8, 2022
Blocked: react/react#25065
TkDodo commentedon Sep 7, 2022
This seems pretty important for v10. Anything we can do to speed-up things on react's side?
KATT commentedon Sep 7, 2022
If you have any strings to pull in the React team, pull 'em. ☺