rtk-queryrtk-query has a handy skipTokenskipToken that can be used to opt out of the query (https://redux-toolkit.js.org/rtk-query/usage-with-typescript#skipping-queries-with-typescript-using-skiptoken). I see that tanstacktanstack has an enabledenabled option, however, it seems with the trpc react hook API you must still pass a typesafe query input.
Join the Discord to ask follow-up questions and connect with the community