diff --git a/packages/react-query/src/isRestoring.ts b/packages/react-query/src/IsRestoringProvider.ts similarity index 100% rename from packages/react-query/src/isRestoring.ts rename to packages/react-query/src/IsRestoringProvider.ts diff --git a/packages/react-query/src/index.ts b/packages/react-query/src/index.ts index 5f372f4195..521929a5e6 100644 --- a/packages/react-query/src/index.ts +++ b/packages/react-query/src/index.ts @@ -52,4 +52,4 @@ export { useIsFetching } from './useIsFetching' export { useIsMutating, useMutationState } from './useMutationState' export { useMutation } from './useMutation' export { useInfiniteQuery } from './useInfiniteQuery' -export { useIsRestoring, IsRestoringProvider } from './isRestoring' +export { useIsRestoring, IsRestoringProvider } from './IsRestoringProvider' diff --git a/packages/react-query/src/useBaseQuery.ts b/packages/react-query/src/useBaseQuery.ts index ed731e4309..4ab885da21 100644 --- a/packages/react-query/src/useBaseQuery.ts +++ b/packages/react-query/src/useBaseQuery.ts @@ -9,7 +9,7 @@ import { getHasError, useClearResetErrorBoundary, } from './errorBoundaryUtils' -import { useIsRestoring } from './isRestoring' +import { useIsRestoring } from './IsRestoringProvider' import { ensureSuspenseTimers, fetchOptimistic, diff --git a/packages/react-query/src/useQueries.ts b/packages/react-query/src/useQueries.ts index a3b2312897..5e580a8120 100644 --- a/packages/react-query/src/useQueries.ts +++ b/packages/react-query/src/useQueries.ts @@ -7,7 +7,7 @@ import { notifyManager, } from '@tanstack/query-core' import { useQueryClient } from './QueryClientProvider' -import { useIsRestoring } from './isRestoring' +import { useIsRestoring } from './IsRestoringProvider' import { useQueryErrorResetBoundary } from './QueryErrorResetBoundary' import { ensurePreventErrorBoundaryRetry,