From c55d362beb86361bd3ceaac14754939df8705fc5 Mon Sep 17 00:00:00 2001 From: Jonghyeon Ko Date: Thu, 27 Feb 2025 18:43:08 +0900 Subject: [PATCH] chore(react-query): isRestoring -> IsRestoreProvider like QueryClientProvider --- .../react-query/src/{isRestoring.ts => IsRestoringProvider.ts} | 0 packages/react-query/src/index.ts | 2 +- packages/react-query/src/useBaseQuery.ts | 2 +- packages/react-query/src/useQueries.ts | 2 +- 4 files changed, 3 insertions(+), 3 deletions(-) rename packages/react-query/src/{isRestoring.ts => IsRestoringProvider.ts} (100%) 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 d25482fd01..c91c74a3d0 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 1876b1bea0..b6588db554 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,