Baboluo
How to do an async API call in useEffect (T3 stack)
Hey, I have the router below and want to call the
tutor
async in an useCallback
function, but the only method that is available is api.chat.queryTutor.useQuery()
which is a hook where you add the input in advance. But I have it available only in the useCallback
function. is there a way to access the function directly without a hook?
16 replies