Skip to content

Commit 7ca86de

Browse files
committed
fix: exclude 'meta' and private keys from query options
1 parent 55d7e90 commit 7ca86de

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

client/app/pages/vue-query.vue

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -83,8 +83,11 @@ function getQueryOptions(query: Query) {
8383
if (typeof value === 'function') {
8484
return acc
8585
}
86-
// exclude queryKey and QueryHash
87-
if (key === 'queryKey' || key === 'queryHash') {
86+
// exclude queryKey, queryHash, and meta
87+
if (key === 'queryKey'
88+
|| key === 'queryHash'
89+
|| key === 'meta'
90+
|| key.startsWith('_')) {
8891
return acc
8992
}
9093
acc[key] = value

0 commit comments

Comments
 (0)