@trpc/react-query
Advanced tools
Comparing version
@@ -6,3 +6,3 @@ 'use strict'; | ||
var client = require('@trpc/client'); | ||
var createHooksInternal = require('./createHooksInternal-e8871abb.js'); | ||
var createHooksInternal = require('./createHooksInternal-7ad2c11c.js'); | ||
var shared = require('@trpc/server/shared'); | ||
@@ -9,0 +9,0 @@ var React = require('react'); |
@@ -5,3 +5,3 @@ 'use strict'; | ||
var createHooksInternal = require('../createHooksInternal-e8871abb.js'); | ||
var createHooksInternal = require('../createHooksInternal-7ad2c11c.js'); | ||
var queryClient = require('../queryClient-358a9a75.js'); | ||
@@ -8,0 +8,0 @@ require('@trpc/server/shared'); |
@@ -14,2 +14,5 @@ /// <reference types="react" /> | ||
queryClient: QueryClient; | ||
/** | ||
* Meta data passed in from the `useMutation()` hook | ||
*/ | ||
meta: Record<string, unknown>; | ||
@@ -24,2 +27,3 @@ }) => MaybePromise<unknown>; | ||
* Override behaviors of the built-in hooks | ||
* @deprecated use `overrides` instead | ||
*/ | ||
@@ -30,2 +34,8 @@ unstable_overrides?: { | ||
/** | ||
* Override behaviors of the built-in hooks | ||
*/ | ||
overrides?: { | ||
useMutation?: Partial<UseMutationOverride>; | ||
}; | ||
/** | ||
* Abort all queries when unmounting | ||
@@ -32,0 +42,0 @@ * @default false |
{ | ||
"name": "@trpc/react-query", | ||
"version": "10.21.3-test.0", | ||
"version": "10.22.0", | ||
"description": "tRPC React lib", | ||
@@ -66,4 +66,4 @@ "author": "KATT", | ||
"@tanstack/react-query": "^4.18.0", | ||
"@trpc/client": "10.21.3-test.0", | ||
"@trpc/server": "10.21.3-test.0", | ||
"@trpc/client": "10.22.0", | ||
"@trpc/server": "10.22.0", | ||
"react": ">=16.8.0", | ||
@@ -74,4 +74,4 @@ "react-dom": ">=16.8.0" | ||
"@tanstack/react-query": "^4.18.0", | ||
"@trpc/client": "10.21.3-test.0", | ||
"@trpc/server": "10.21.3-test.0", | ||
"@trpc/client": "10.22.0", | ||
"@trpc/server": "10.22.0", | ||
"@types/express": "^4.17.12", | ||
@@ -92,3 +92,3 @@ "@types/node": "^18.7.20", | ||
}, | ||
"gitHead": "fae87059bd635f98e53b1989e5673cb50963ef18" | ||
"gitHead": "65ca7a2be17de07f35f29e69fdcfddd3eeacfbaf" | ||
} |
@@ -14,2 +14,5 @@ import { QueryClient } from '@tanstack/react-query'; | ||
queryClient: QueryClient; | ||
/** | ||
* Meta data passed in from the `useMutation()` hook | ||
*/ | ||
meta: Record<string, unknown>; | ||
@@ -25,2 +28,3 @@ }) => MaybePromise<unknown>; | ||
* Override behaviors of the built-in hooks | ||
* @deprecated use `overrides` instead | ||
*/ | ||
@@ -30,2 +34,8 @@ unstable_overrides?: { | ||
}; | ||
/** | ||
* Override behaviors of the built-in hooks | ||
*/ | ||
overrides?: { | ||
useMutation?: Partial<UseMutationOverride>; | ||
}; | ||
@@ -32,0 +42,0 @@ /** |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
No v1
QualityPackage is not semver >=1. This means it is not stable and does not support ^ ranges.
Found 1 instance in 1 package
281505
0.26%6017
0.35%0
-100%