How do I stop a trpc query from running when a parameter is null?
In this example, since the TRPC procedure only accepts productId as a string that's not nullable, I still get a type error for productId.
Do I just update this to
3 Replies
Current type error
you can't really, if you've got the
enabled
there the best u can do is to use !
to force a non-null valueOh dang
Interesting
Thanks again Brendonovich!