Skip to content

Commit 2db0724

Browse files
authored
fix(useOperationIdAsQueryKey): make sure operationName is returned as string (#2443)
1 parent 6fd7604 commit 2db0724

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/query/src/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1372,7 +1372,7 @@ ${
13721372
13731373
// Use operation ID as query key if enabled, otherwise use route string
13741374
const queryKeyIdentifier = override.query.useOperationIdAsQueryKey
1375-
? operationName
1375+
? `"${operationName}"`
13761376
: routeString;
13771377
13781378
// Note: do not unref() params in Vue - this will make key lose reactivity

0 commit comments

Comments
 (0)