@tanstack/vue-query
Advanced tools
Comparing version 5.36.0 to 5.36.1
import { Ref, DeepReadonly } from 'vue-demi'; | ||
import { MutationFilters as MutationFilters$1, MutationState, Mutation, DefaultError } from '@tanstack/query-core'; | ||
import { MutationFilters as MutationFilters$1, MutationState, Mutation } from '@tanstack/query-core'; | ||
import { QueryClient } from './queryClient.js'; | ||
@@ -10,3 +10,3 @@ import { MaybeRefDeep } from './types.js'; | ||
filters?: MutationFilters; | ||
select?: (mutation: Mutation<unknown, DefaultError, unknown, unknown>) => TResult; | ||
select?: (mutation: Mutation) => TResult; | ||
}; | ||
@@ -13,0 +13,0 @@ declare function useMutationState<TResult = MutationState>(options?: MutationStateOptions<TResult>, queryClient?: QueryClient): DeepReadonly<Ref<Array<TResult>>>; |
@@ -35,5 +35,3 @@ // src/useMutationState.ts | ||
return mutationCache.findAll(options.filters).map( | ||
(mutation) => options.select ? options.select( | ||
mutation | ||
) : mutation.state | ||
(mutation) => options.select ? options.select(mutation) : mutation.state | ||
); | ||
@@ -40,0 +38,0 @@ } |
import { Ref, DeepReadonly } from 'vue-demi'; | ||
import { MutationFilters as MutationFilters$1, MutationState, Mutation, DefaultError } from '@tanstack/query-core'; | ||
import { MutationFilters as MutationFilters$1, MutationState, Mutation } from '@tanstack/query-core'; | ||
import { QueryClient } from './queryClient.js'; | ||
@@ -10,3 +10,3 @@ import { MaybeRefDeep } from './types.js'; | ||
filters?: MutationFilters; | ||
select?: (mutation: Mutation<unknown, DefaultError, unknown, unknown>) => TResult; | ||
select?: (mutation: Mutation) => TResult; | ||
}; | ||
@@ -13,0 +13,0 @@ declare function useMutationState<TResult = MutationState>(options?: MutationStateOptions<TResult>, queryClient?: QueryClient): DeepReadonly<Ref<Array<TResult>>>; |
@@ -35,5 +35,3 @@ // src/useMutationState.ts | ||
return mutationCache.findAll(options.filters).map( | ||
(mutation) => options.select ? options.select( | ||
mutation | ||
) : mutation.state | ||
(mutation) => options.select ? options.select(mutation) : mutation.state | ||
); | ||
@@ -40,0 +38,0 @@ } |
{ | ||
"name": "@tanstack/vue-query", | ||
"version": "5.36.0", | ||
"version": "5.36.1", | ||
"description": "Hooks for managing, caching and syncing asynchronous and remote data in Vue", | ||
@@ -52,3 +52,3 @@ "author": "Damian Osipiuk", | ||
"vue-demi": "^0.14.6", | ||
"@tanstack/query-core": "5.36.0" | ||
"@tanstack/query-core": "5.36.1" | ||
}, | ||
@@ -55,0 +55,0 @@ "devDependencies": { |
@@ -13,3 +13,2 @@ import { | ||
import type { | ||
DefaultError, | ||
MutationFilters as MF, | ||
@@ -55,5 +54,3 @@ Mutation, | ||
filters?: MutationFilters | ||
select?: ( | ||
mutation: Mutation<unknown, DefaultError, unknown, unknown>, | ||
) => TResult | ||
select?: (mutation: Mutation) => TResult | ||
} | ||
@@ -69,7 +66,3 @@ | ||
(mutation): TResult => | ||
(options.select | ||
? options.select( | ||
mutation as Mutation<unknown, DefaultError, unknown, unknown>, | ||
) | ||
: mutation.state) as TResult, | ||
(options.select ? options.select(mutation) : mutation.state) as TResult, | ||
) | ||
@@ -76,0 +69,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
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
747729
10359
+ Added@tanstack/query-core@5.36.1(transitive)
- Removed@tanstack/query-core@5.36.0(transitive)
Updated@tanstack/query-core@5.36.1