TanStackT
TanStack6mo ago
15 replies
primary-violet

queryKey undefined

Hi everyone! Does anyone know what the best approach is when queryKey might be undefined? Should I assign a random key even if I don't want the query to run or be cached? I'm trying to understand the reasoning behind it.
Was this page helpful?