We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent dba9634 commit 7fc20e1Copy full SHA for 7fc20e1
packages/query/src/index.ts
@@ -1131,7 +1131,8 @@ const generateQueryHook = async (
1131
1132
// For non-GET operations, only register query OR mutation hooks, not both
1133
let isMutation =
1134
- operationQueryOptions?.useMutation || override.query.useMutation;
+ verb !== Verbs.GET &&
1135
+ (operationQueryOptions?.useMutation || override.query.useMutation);
1136
1137
// If both query and mutation are true for a non-GET operation, prioritize query
1138
if (verb !== Verbs.GET && isQuery) {
0 commit comments