How to use generated react-query hooks in a third party folder on a big project #7511
Unanswered
kevinmamaqi
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.
-
I have generated the hooks using:
In a shared folder to user those in my react apps, having the following structure:
How can I import the hooks without the following error:
Error: Invalid hook call. Hooks can only be called inside of the body of a function component. This could happen for one of the following reasons:
We are not using a yarn monorepo or similar, and I'm afraid we can't
Beta Was this translation helpful? Give feedback.
All reactions