useMemo and queryFn
So I have a fairly simple query function, shown below. I was wondering if
const body = await response.json() and zResponse.parse(body); would run on every render? Would it make sense to wrap them in a useMemo with response as the dependency? This queryFn is in a custom hook.