-
Notifications
You must be signed in to change notification settings - Fork 7
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
Typescript is slow after using the lib #5
Comments
Hi there, thank you for the kind words and I'm happy the library has been helpful! Very strange that it's choking up Typescipt, I'm not sure off the top of my head what could be causing this 🤔. Would you mind letting me know the version of Typescript, Prisma client and the extension code you are using so I can reproduce the problem locally? One thing that's occured to me actually is that using nodemon to regenerate the Prisma client on save might cause things to be slow, are you doing that by any chance? Thanks for raising the issue, it is very frustrating to have slow typescript suggestions for sure! |
Of course, here's the information: "@prisma/client": "^4.16.2",
This is the code we are using, but I have already excluded everything within the functions, leaving only the return, as shown in the doc. return await params.query(params.args); and the problem happens. If I remove the return from within the function, the slowness stops. We are not using nodemon. Thank you for the response and support. |
+1: both on the compliments and +1 on observing the slowness side-effect |
First, congratulations on your work, it helped us a lot here in our project.
But we had a side effect when using this lib. Typescript suggestions were very slow. And this happened on every machine, from every developer. I recorded the screen, showing the difference between when we use the lib and when we don't.
Do you have any suggestions to avoid this side effect? Has anyone ever experienced this?
Gravacao.de.Tela.2024-02-02.as.15.09.28.mov
The text was updated successfully, but these errors were encountered: