@tanstack/solid-query
Advanced tools
Comparing version 5.36.0 to 5.36.1
@@ -382,5 +382,3 @@ import { QueryClient as QueryClient$1, MutationObserver, replaceEqualDeep, QueriesObserver, hydrate, QueryObserver, InfiniteQueryObserver, notifyManager } from '@tanstack/query-core'; | ||
return mutationCache.findAll(options.filters).map( | ||
(mutation) => options.select ? options.select( | ||
mutation | ||
) : mutation.state | ||
(mutation) => options.select ? options.select(mutation) : mutation.state | ||
); | ||
@@ -387,0 +385,0 @@ } |
@@ -123,3 +123,3 @@ import { DefaultError, QueryKey, OmitKeyof, QueryObserverOptions as QueryObserverOptions$1, InfiniteQueryObserverOptions as InfiniteQueryObserverOptions$1, DefaultOptions as DefaultOptions$1, QueryClientConfig as QueryClientConfig$1, QueryClient as QueryClient$1, QueryObserverResult, DefinedQueryObserverResult, InfiniteQueryObserverResult, MutationObserverOptions, MutateFunction, MutationObserverResult, DataTag, QueryFilters, InfiniteData, MutationFilters, MutationState, Mutation, QueriesPlaceholderDataFunction, QueryFunction, SkipToken, ThrowOnError } from '@tanstack/query-core'; | ||
filters?: MutationFilters; | ||
select?: (mutation: Mutation<unknown, DefaultError, unknown, unknown>) => TResult; | ||
select?: (mutation: Mutation) => TResult; | ||
}; | ||
@@ -126,0 +126,0 @@ declare function useMutationState<TResult = MutationState>(options?: Accessor<MutationStateOptions<TResult>>, queryClient?: Accessor<QueryClient>): Accessor<Array<TResult>>; |
@@ -373,5 +373,3 @@ import { QueryClient as QueryClient$1, MutationObserver, replaceEqualDeep, QueriesObserver, hydrate, QueryObserver, InfiniteQueryObserver, notifyManager } from '@tanstack/query-core'; | ||
return mutationCache.findAll(options.filters).map( | ||
(mutation) => options.select ? options.select( | ||
mutation | ||
) : mutation.state | ||
(mutation) => options.select ? options.select(mutation) : mutation.state | ||
); | ||
@@ -378,0 +376,0 @@ } |
{ | ||
"name": "@tanstack/solid-query", | ||
"version": "5.36.0", | ||
"version": "5.36.1", | ||
"description": "Primitives for managing, caching and syncing asynchronous and remote data in Solid", | ||
@@ -48,3 +48,3 @@ "author": "tannerlinsley", | ||
"solid-js": "^1.8.14", | ||
"@tanstack/query-core": "5.36.0" | ||
"@tanstack/query-core": "5.36.1" | ||
}, | ||
@@ -51,0 +51,0 @@ "devDependencies": { |
@@ -5,3 +5,2 @@ import { createEffect, createMemo, createSignal, onCleanup } from 'solid-js' | ||
import type { | ||
DefaultError, | ||
Mutation, | ||
@@ -17,5 +16,3 @@ MutationCache, | ||
filters?: MutationFilters | ||
select?: ( | ||
mutation: Mutation<unknown, DefaultError, unknown, unknown>, | ||
) => TResult | ||
select?: (mutation: Mutation) => TResult | ||
} | ||
@@ -31,7 +28,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, | ||
) | ||
@@ -38,0 +31,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
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
463172
13906
+ Added@tanstack/query-core@5.36.1(transitive)
- Removed@tanstack/query-core@5.36.0(transitive)
Updated@tanstack/query-core@5.36.1