custom query function

Gg3root5/2/2023
I have a use case where I need a trpc procedure call when a specific key is not present in the local storage else I return the data in the local storage. Can this be doable without relying on the vanilla react-query hook ?
Nnlucas5/2/2023
You could use a custom hook and toggle the enabled flag on the query?