Skip to content

Commit 415e4a4

Browse files
committed
Remove ensureArray
1 parent 4de866c commit 415e4a4

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

src/core/query.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
import {
22
Updater,
3-
ensureArray,
43
functionalUpdate,
54
isValidTimeout,
65
noop,
@@ -393,7 +392,7 @@ export class Query<
393392
const context: FetchContext<TQueryFnData, TError, TData, any> = {
394393
fetchOptions,
395394
options: this.options,
396-
queryKey: ensureArray(this.queryKey),
395+
queryKey: this.queryKey,
397396
state: this.state,
398397
fetchFn,
399398
}

0 commit comments

Comments
 (0)