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
I've noticed that the tsconfig.json compiler property strictNullChecks need to be enabled to get proper IntelliSense performance on useQuery on a large project. The large project is an NX mono repo, for instance. This also happens for me with other hooks like useMutation when strictNullChecks is false.
Here's a TS compilation stack trace for the said project, with strictNullChecks: false:
Here's a TS compilation stack trace for the said project, with strictNullChecks: true:
As you can see, the call stack is much larger and the compilation time shortens by at least 2 seconds.
Other users have also reported similar issues on discord. Upon investigation, it seems that strictNullChecks is required as a part of zod: colinhacks/zod#1750
Until we dig deeper to see if we can resolve this on our end, I recommend updating the docs to reflect this.
The text was updated successfully, but these errors were encountered:
I've noticed that the tsconfig.json compiler property
strictNullChecks
need to be enabled to get proper IntelliSense performance on useQuery on a large project. The large project is an NX mono repo, for instance. This also happens for me with other hooks like useMutation when strictNullChecks is false.Here's a TS compilation stack trace for the said project, with

strictNullChecks: false
:Here's a TS compilation stack trace for the said project, with

strictNullChecks: true
:As you can see, the call stack is much larger and the compilation time shortens by at least 2 seconds.
Other users have also reported similar issues on discord. Upon investigation, it seems that
strictNullChecks
is required as a part ofzod
: colinhacks/zod#1750Until we dig deeper to see if we can resolve this on our end, I recommend updating the docs to reflect this.
The text was updated successfully, but these errors were encountered: