-
-
Notifications
You must be signed in to change notification settings - Fork 376
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Vue Query: It generates undefined function "useCallback" #1872
Comments
Maybe I found code makes matter:
I think it have to have a branch for "vue or not vue", and make making output without "useCallback" when it uses vue-query. I can solve the problem by adding an simple if branch, but would you be okay with it solving? ============================ 問題点が分かったと思います。
ここに、「vue か vue でないかの分岐」をおき、vue の場合は useCallback を使わない形で出力すべきではないでしょうか。 ただ単純に if分岐を足す形の修正であれば、私でも可能かと思います。 |
Ahhh good debugging do you want to open a PR? |
@melloware |
What are the steps to reproduce this issue?
What happens?
Orval generates code below:
This code has critical problem: useCallback() doesn't exist on Vue.
So, this makes unavoidable error.
…
What were you expecting to happen?
Before orval version 6.29.0, it generates correct code.
Please make back.
…
Any logs, error output, etc?
…
Any other comments?
Probably, useCallback is made with setting mutator on orval.config.ts.
…
What versions are you using?
Operating System: … Linux (WSL)
Package Version: …6.29.1 ~ 7.4.1
Browser Version: N/A
The text was updated successfully, but these errors were encountered: