How to conditionally fetch data?

In my mind I want to do a mutation that returns data, but I guess that doesn't work. I have an edit button, and when the user clicks it and therefore goes into edit mode, I want to fetch some additional data from db.
2 Replies
Neto
Neto3y ago
if you want to block the request until a certain condition, you should check the enabled from react query
Johnson
JohnsonOP3y ago
ty!
Want results from more Discord servers?
Add your server