Skip to content

Commit 96626d1

Browse files
author
liaoxuan
committed
fix: method is incompatible with of Tanstack Query v5.59.x
1 parent 028168d commit 96626d1

File tree

3 files changed

+14
-10
lines changed

3 files changed

+14
-10
lines changed

package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@
2727
"@rollup/plugin-commonjs": "^22.0.2",
2828
"@rollup/plugin-node-resolve": "^13.2.1",
2929
"@rollup/plugin-replace": "^4.0.0",
30-
"@tanstack/react-query": "^5.35.1",
30+
"@tanstack/react-query": "^5.59.16",
3131
"@testing-library/jest-dom": "^5.16.5",
3232
"@testing-library/react": "^14.0.0",
3333
"@trivago/prettier-plugin-sort-imports": "^4.2.0",

src/types.ts

+4
Original file line numberDiff line numberDiff line change
@@ -127,6 +127,10 @@ export type ExposeMethods<TFnData, TVariables, TError, TPageParam = never> = {
127127
? CompatibleWithV4<
128128
UseQueryOptions<TFnData, TError, TFnData, QueryKey> & {
129129
queryKey: DataTag<QueryKey, TFnData>
130+
queryFn?: Exclude<
131+
UseQueryOptions<TFnData, TError, TFnData, QueryKey>['queryFn'],
132+
SkipToken
133+
>
130134
},
131135
// Not work to infer TError in v4
132136
{

yarn.lock

+9-9
Original file line numberDiff line numberDiff line change
@@ -1676,17 +1676,17 @@
16761676
dependencies:
16771677
"@sinonjs/commons" "^3.0.0"
16781678

1679-
"@tanstack/query-core@5.35.1":
1680-
version "5.35.1"
1681-
resolved "https://registry.yarnpkg.com/@tanstack/query-core/-/query-core-5.35.1.tgz#a7e6cbf0f252475da19ba9cba6567e8fe683b2ee"
1682-
integrity sha512-0Dnpybqb8+ps6WgqBnqFEC+1F/xLvUosRAq+wiGisTgolOZzqZfkE2995dEXmhuzINiTM7/a6xSGznU0NIvBkw==
1679+
"@tanstack/query-core@5.59.16":
1680+
version "5.59.16"
1681+
resolved "https://registry-npm-next.huolala.work/@tanstack/query-core/-/query-core-5.59.16.tgz#aa4616e8a9c12afeef4cfbf3ed0f55f404d66e67"
1682+
integrity sha1-qkYW6KnBKv7vTPvz7Q9V9ATWbmc=
16831683

1684-
"@tanstack/react-query@^5.35.1":
1685-
version "5.35.1"
1686-
resolved "https://registry.yarnpkg.com/@tanstack/react-query/-/react-query-5.35.1.tgz#3b7c710bb32c6c71e0cbe64029dded9b0cbd9a0f"
1687-
integrity sha512-i2T7m2ffQdNqlX3pO+uMsnQ0H4a59Ens2GxtlMsRiOvdSB4SfYmHb27MnvFV8rGmtWRaa4gPli0/rpDoSS5LbQ==
1684+
"@tanstack/react-query@^5.59.16":
1685+
version "5.59.16"
1686+
resolved "https://registry-npm-next.huolala.work/@tanstack/react-query/-/react-query-5.59.16.tgz#1e701c6e6681965c04aa426df9da54b8edc6db1b"
1687+
integrity sha1-HnAcbmaBllwEqkJt+dpUuO3G2xs=
16881688
dependencies:
1689-
"@tanstack/query-core" "5.35.1"
1689+
"@tanstack/query-core" "5.59.16"
16901690

16911691
"@testing-library/dom@^9.0.0":
16921692
version "9.3.0"

0 commit comments

Comments
 (0)