Skip to content

Commit

Permalink
fix: method is incompatible with of Tanstack Query v5.59.x
Browse files Browse the repository at this point in the history
  • Loading branch information
liaoxuan committed Oct 29, 2024
1 parent 028168d commit 96626d1
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 10 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
"@rollup/plugin-commonjs": "^22.0.2",
"@rollup/plugin-node-resolve": "^13.2.1",
"@rollup/plugin-replace": "^4.0.0",
"@tanstack/react-query": "^5.35.1",
"@tanstack/react-query": "^5.59.16",
"@testing-library/jest-dom": "^5.16.5",
"@testing-library/react": "^14.0.0",
"@trivago/prettier-plugin-sort-imports": "^4.2.0",
Expand Down
4 changes: 4 additions & 0 deletions src/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -127,6 +127,10 @@ export type ExposeMethods<TFnData, TVariables, TError, TPageParam = never> = {
? CompatibleWithV4<
UseQueryOptions<TFnData, TError, TFnData, QueryKey> & {
queryKey: DataTag<QueryKey, TFnData>
queryFn?: Exclude<
UseQueryOptions<TFnData, TError, TFnData, QueryKey>['queryFn'],
SkipToken
>
},
// Not work to infer TError in v4
{
Expand Down
18 changes: 9 additions & 9 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -1676,17 +1676,17 @@
dependencies:
"@sinonjs/commons" "^3.0.0"

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

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

"@testing-library/dom@^9.0.0":
version "9.3.0"
Expand Down

0 comments on commit 96626d1

Please sign in to comment.