@tanstack/query-core
Advanced tools
Comparing version
export { I as AnyDataTag, b1 as CancelOptions, C as CancelledError, J as DataTag, z as DefaultError, b0 as DefaultOptions, af as DefaultedInfiniteQueryObserverOptions, ad as DefaultedQueryObserverOptions, aK as DefinedInfiniteQueryObserverResult, aB as DefinedQueryObserverResult, D as DehydrateOptions, x as DehydratedState, V as Enabled, ai as EnsureInfiniteQueryDataOptions, ah as EnsureQueryDataOptions, aj as FetchInfiniteQueryOptions, aq as FetchNextPageOptions, ar as FetchPreviousPageOptions, ag as FetchQueryOptions, at as FetchStatus, a1 as GetNextPageParamFunction, a0 as GetPreviousPageParamFunction, H as HydrateOptions, K as InferDataFromTag, L as InferErrorFromTag, a2 as InfiniteData, aD as InfiniteQueryObserverBaseResult, aG as InfiniteQueryObserverLoadingErrorResult, aF as InfiniteQueryObserverLoadingResult, ae as InfiniteQueryObserverOptions, aE as InfiniteQueryObserverPendingResult, aJ as InfiniteQueryObserverPlaceholderResult, aH as InfiniteQueryObserverRefetchErrorResult, aL as InfiniteQueryObserverResult, aI as InfiniteQueryObserverSuccessResult, a8 as InfiniteQueryPageParamsOptions, Y as InitialDataFunction, a7 as InitialPageParam, ao as InvalidateOptions, am as InvalidateQueryFilters, aU as MutateFunction, aT as MutateOptions, w as Mutation, M as MutationCache, d as MutationCacheNotifyEvent, g as MutationFilters, aQ as MutationFunction, aM as MutationKey, aP as MutationMeta, e as MutationObserver, aV as MutationObserverBaseResult, aY as MutationObserverErrorResult, aW as MutationObserverIdleResult, aX as MutationObserverLoadingResult, aS as MutationObserverOptions, a_ as MutationObserverResult, aZ as MutationObserverSuccessResult, aR as MutationOptions, aO as MutationScope, v as MutationState, aN as MutationStatus, a4 as NetworkMode, N as NoInfer, b4 as NotifyEvent, b3 as NotifyEventType, a5 as NotifyOnChangeProps, O as OmitKeyof, ac as Optional, y as Override, Z as PlaceholderDataFunction, _ as QueriesPlaceholderDataFunction, u as Query, Q as QueryCache, a as QueryCacheNotifyEvent, b as QueryClient, a$ as QueryClientConfig, j as QueryFilters, P as QueryFunction, X as QueryFunctionContext, A as QueryKey, $ as QueryKeyHashFunction, a3 as QueryMeta, c as QueryObserver, au as QueryObserverBaseResult, ax as QueryObserverLoadingErrorResult, aw as QueryObserverLoadingResult, aa as QueryObserverOptions, av as QueryObserverPendingResult, aA as QueryObserverPlaceholderResult, ay as QueryObserverRefetchErrorResult, aC as QueryObserverResult, az as QueryObserverSuccessResult, a6 as QueryOptions, W as QueryPersister, t as QueryState, as as QueryStatus, al as RefetchOptions, an as RefetchQueryFilters, R as Register, ap as ResetOptions, ak as ResultOptions, b2 as SetDataOptions, S as SkipToken, T as StaleTime, a9 as ThrowOnError, G as UnsetMarker, U as Updater, ab as WithRequired, E as dataTagErrorSymbol, B as dataTagSymbol, q as defaultShouldDehydrateMutation, p as defaultShouldDehydrateQuery, n as dehydrate, h as hashKey, o as hydrate, l as isCancelledError, i as isServer, k as keepPreviousData, f as matchMutation, m as matchQuery, r as replaceEqualDeep, s as skipToken, F as unsetMarker } from './hydration-Cik0p0G0.js'; | ||
export { QueriesObserver, QueriesObserverOptions } from './queriesObserver.js'; | ||
export { InfiniteQueryObserver } from './infiniteQueryObserver.js'; | ||
export { notifyManager } from './notifyManager.js'; | ||
export { defaultScheduler, notifyManager } from './notifyManager.js'; | ||
export { focusManager } from './focusManager.js'; | ||
@@ -6,0 +6,0 @@ export { onlineManager } from './onlineManager.js'; |
@@ -12,3 +12,3 @@ import "./chunk-2HYBKCYP.js"; | ||
import { MutationObserver } from "./mutationObserver.js"; | ||
import { notifyManager } from "./notifyManager.js"; | ||
import { notifyManager, defaultScheduler } from "./notifyManager.js"; | ||
import { focusManager } from "./focusManager.js"; | ||
@@ -47,2 +47,3 @@ import { onlineManager } from "./onlineManager.js"; | ||
QueryObserver, | ||
defaultScheduler, | ||
defaultShouldDehydrateMutation, | ||
@@ -49,0 +50,0 @@ defaultShouldDehydrateQuery, |
@@ -6,2 +6,3 @@ type NotifyCallback = () => void; | ||
type ScheduleFunction = (callback: () => void) => void; | ||
declare const defaultScheduler: ScheduleFunction; | ||
declare function createNotifyManager(): { | ||
@@ -46,2 +47,2 @@ readonly batch: <T>(callback: () => T) => T; | ||
export { createNotifyManager, notifyManager }; | ||
export { createNotifyManager, defaultScheduler, notifyManager }; |
import "./chunk-2HYBKCYP.js"; | ||
// src/notifyManager.ts | ||
var defaultScheduler = (cb) => setTimeout(cb, 0); | ||
function createNotifyManager() { | ||
@@ -13,3 +14,3 @@ let queue = []; | ||
}; | ||
let scheduleFn = (cb) => setTimeout(cb, 0); | ||
let scheduleFn = defaultScheduler; | ||
const schedule = (callback) => { | ||
@@ -84,4 +85,5 @@ if (transactions) { | ||
createNotifyManager, | ||
defaultScheduler, | ||
notifyManager | ||
}; | ||
//# sourceMappingURL=notifyManager.js.map |
export { I as AnyDataTag, b1 as CancelOptions, C as CancelledError, J as DataTag, z as DefaultError, b0 as DefaultOptions, af as DefaultedInfiniteQueryObserverOptions, ad as DefaultedQueryObserverOptions, aK as DefinedInfiniteQueryObserverResult, aB as DefinedQueryObserverResult, D as DehydrateOptions, x as DehydratedState, V as Enabled, ai as EnsureInfiniteQueryDataOptions, ah as EnsureQueryDataOptions, aj as FetchInfiniteQueryOptions, aq as FetchNextPageOptions, ar as FetchPreviousPageOptions, ag as FetchQueryOptions, at as FetchStatus, a1 as GetNextPageParamFunction, a0 as GetPreviousPageParamFunction, H as HydrateOptions, K as InferDataFromTag, L as InferErrorFromTag, a2 as InfiniteData, aD as InfiniteQueryObserverBaseResult, aG as InfiniteQueryObserverLoadingErrorResult, aF as InfiniteQueryObserverLoadingResult, ae as InfiniteQueryObserverOptions, aE as InfiniteQueryObserverPendingResult, aJ as InfiniteQueryObserverPlaceholderResult, aH as InfiniteQueryObserverRefetchErrorResult, aL as InfiniteQueryObserverResult, aI as InfiniteQueryObserverSuccessResult, a8 as InfiniteQueryPageParamsOptions, Y as InitialDataFunction, a7 as InitialPageParam, ao as InvalidateOptions, am as InvalidateQueryFilters, aU as MutateFunction, aT as MutateOptions, w as Mutation, M as MutationCache, d as MutationCacheNotifyEvent, g as MutationFilters, aQ as MutationFunction, aM as MutationKey, aP as MutationMeta, e as MutationObserver, aV as MutationObserverBaseResult, aY as MutationObserverErrorResult, aW as MutationObserverIdleResult, aX as MutationObserverLoadingResult, aS as MutationObserverOptions, a_ as MutationObserverResult, aZ as MutationObserverSuccessResult, aR as MutationOptions, aO as MutationScope, v as MutationState, aN as MutationStatus, a4 as NetworkMode, N as NoInfer, b4 as NotifyEvent, b3 as NotifyEventType, a5 as NotifyOnChangeProps, O as OmitKeyof, ac as Optional, y as Override, Z as PlaceholderDataFunction, _ as QueriesPlaceholderDataFunction, u as Query, Q as QueryCache, a as QueryCacheNotifyEvent, b as QueryClient, a$ as QueryClientConfig, j as QueryFilters, P as QueryFunction, X as QueryFunctionContext, A as QueryKey, $ as QueryKeyHashFunction, a3 as QueryMeta, c as QueryObserver, au as QueryObserverBaseResult, ax as QueryObserverLoadingErrorResult, aw as QueryObserverLoadingResult, aa as QueryObserverOptions, av as QueryObserverPendingResult, aA as QueryObserverPlaceholderResult, ay as QueryObserverRefetchErrorResult, aC as QueryObserverResult, az as QueryObserverSuccessResult, a6 as QueryOptions, W as QueryPersister, t as QueryState, as as QueryStatus, al as RefetchOptions, an as RefetchQueryFilters, R as Register, ap as ResetOptions, ak as ResultOptions, b2 as SetDataOptions, S as SkipToken, T as StaleTime, a9 as ThrowOnError, G as UnsetMarker, U as Updater, ab as WithRequired, E as dataTagErrorSymbol, B as dataTagSymbol, q as defaultShouldDehydrateMutation, p as defaultShouldDehydrateQuery, n as dehydrate, h as hashKey, o as hydrate, l as isCancelledError, i as isServer, k as keepPreviousData, f as matchMutation, m as matchQuery, r as replaceEqualDeep, s as skipToken, F as unsetMarker } from './hydration-Cik0p0G0.js'; | ||
export { QueriesObserver, QueriesObserverOptions } from './queriesObserver.js'; | ||
export { InfiniteQueryObserver } from './infiniteQueryObserver.js'; | ||
export { notifyManager } from './notifyManager.js'; | ||
export { defaultScheduler, notifyManager } from './notifyManager.js'; | ||
export { focusManager } from './focusManager.js'; | ||
@@ -6,0 +6,0 @@ export { onlineManager } from './onlineManager.js'; |
@@ -10,3 +10,3 @@ // src/index.ts | ||
import { MutationObserver } from "./mutationObserver.js"; | ||
import { notifyManager } from "./notifyManager.js"; | ||
import { notifyManager, defaultScheduler } from "./notifyManager.js"; | ||
import { focusManager } from "./focusManager.js"; | ||
@@ -45,2 +45,3 @@ import { onlineManager } from "./onlineManager.js"; | ||
QueryObserver, | ||
defaultScheduler, | ||
defaultShouldDehydrateMutation, | ||
@@ -47,0 +48,0 @@ defaultShouldDehydrateQuery, |
@@ -6,2 +6,3 @@ type NotifyCallback = () => void; | ||
type ScheduleFunction = (callback: () => void) => void; | ||
declare const defaultScheduler: ScheduleFunction; | ||
declare function createNotifyManager(): { | ||
@@ -46,2 +47,2 @@ readonly batch: <T>(callback: () => T) => T; | ||
export { createNotifyManager, notifyManager }; | ||
export { createNotifyManager, defaultScheduler, notifyManager }; |
// src/notifyManager.ts | ||
var defaultScheduler = (cb) => setTimeout(cb, 0); | ||
function createNotifyManager() { | ||
@@ -11,3 +12,3 @@ let queue = []; | ||
}; | ||
let scheduleFn = (cb) => setTimeout(cb, 0); | ||
let scheduleFn = defaultScheduler; | ||
const schedule = (callback) => { | ||
@@ -82,4 +83,5 @@ if (transactions) { | ||
createNotifyManager, | ||
defaultScheduler, | ||
notifyManager | ||
}; | ||
//# sourceMappingURL=notifyManager.js.map |
{ | ||
"name": "@tanstack/query-core", | ||
"version": "5.69.2", | ||
"version": "5.70.0", | ||
"description": "The framework agnostic core that powers TanStack Query", | ||
@@ -5,0 +5,0 @@ "author": "tannerlinsley", |
@@ -13,3 +13,3 @@ /* istanbul ignore file */ | ||
export { MutationObserver } from './mutationObserver' | ||
export { notifyManager } from './notifyManager' | ||
export { notifyManager, defaultScheduler } from './notifyManager' | ||
export { focusManager } from './focusManager' | ||
@@ -16,0 +16,0 @@ export { onlineManager } from './onlineManager' |
@@ -13,2 +13,4 @@ // TYPES | ||
export const defaultScheduler: ScheduleFunction = (cb) => setTimeout(cb, 0) | ||
export function createNotifyManager() { | ||
@@ -23,3 +25,3 @@ let queue: Array<NotifyCallback> = [] | ||
} | ||
let scheduleFn: ScheduleFunction = (cb) => setTimeout(cb, 0) | ||
let scheduleFn = defaultScheduler | ||
@@ -26,0 +28,0 @@ const schedule = (callback: NotifyCallback): void => { |
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
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
2001793
0.07%22966
0.08%