Disabling query with TanStack Query
I want to disable running query by condition.
Here is the code.
So I want to run query only when select file. But it throws an error to convex log when the page is refreshed because the fileId is not immediately available: ArgumentValidationError: Value does not match validator. Path: .fileId Value: null Validator: v.id("files")
How can I solve it?
