Can I use useQuery in an accessorFn? #5027
Unanswered
tiagoinaba
asked this question in
Q&A
Replies: 0 comments
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.
Uh oh!
There was an error while loading. Please reload this page.
-
I'm trying to query for data in my back-end but it throws a "Rendered fewer hooks than expected" error. Is there another way I should do this?
`accessorFn: ({ serviceId }) => {
const { data } = api.service.getById.useQuery({ id: serviceId });
},`
Beta Was this translation helpful? Give feedback.
All reactions