diff --git a/packages/react-query/src/errorBoundaryUtils.ts b/packages/react-query/src/errorBoundaryUtils.ts index 9f4bb5320b..3746379eac 100644 --- a/packages/react-query/src/errorBoundaryUtils.ts +++ b/packages/react-query/src/errorBoundaryUtils.ts @@ -1,4 +1,3 @@ -'use client' import type { DefaultedQueryObserverOptions, Query, diff --git a/packages/react-query/src/isRestoring.tsx b/packages/react-query/src/isRestoring.ts similarity index 94% rename from packages/react-query/src/isRestoring.tsx rename to packages/react-query/src/isRestoring.ts index 7d59c72507..3d8728e703 100644 --- a/packages/react-query/src/isRestoring.tsx +++ b/packages/react-query/src/isRestoring.ts @@ -1,4 +1,3 @@ -'use client' import * as React from 'react' const IsRestoringContext = React.createContext(false) diff --git a/packages/react-query/src/useBaseQuery.ts b/packages/react-query/src/useBaseQuery.ts index 7fb7502df6..e204ac057b 100644 --- a/packages/react-query/src/useBaseQuery.ts +++ b/packages/react-query/src/useBaseQuery.ts @@ -1,4 +1,3 @@ -'use client' import * as React from 'react' import type { QueryClient, QueryKey, QueryObserver } from '@tanstack/query-core' diff --git a/packages/react-query/src/useInfiniteQuery.ts b/packages/react-query/src/useInfiniteQuery.ts index f1828e97c7..cea7895c74 100644 --- a/packages/react-query/src/useInfiniteQuery.ts +++ b/packages/react-query/src/useInfiniteQuery.ts @@ -1,4 +1,3 @@ -'use client' import type { QueryObserver, QueryKey, diff --git a/packages/react-query/src/useIsFetching.ts b/packages/react-query/src/useIsFetching.ts index 6e1604aeae..1e67425365 100644 --- a/packages/react-query/src/useIsFetching.ts +++ b/packages/react-query/src/useIsFetching.ts @@ -1,4 +1,3 @@ -'use client' import * as React from 'react' import type { QueryClient, QueryFilters } from '@tanstack/query-core' import { notifyManager } from '@tanstack/query-core' diff --git a/packages/react-query/src/useMutation.ts b/packages/react-query/src/useMutation.ts index e8236769f9..888712c6ec 100644 --- a/packages/react-query/src/useMutation.ts +++ b/packages/react-query/src/useMutation.ts @@ -1,4 +1,3 @@ -'use client' import * as React from 'react' import type { QueryClient, DefaultError } from '@tanstack/query-core' import { notifyManager, MutationObserver } from '@tanstack/query-core' diff --git a/packages/react-query/src/useMutationState.ts b/packages/react-query/src/useMutationState.ts index f8feb21b58..a4a6dbd89c 100644 --- a/packages/react-query/src/useMutationState.ts +++ b/packages/react-query/src/useMutationState.ts @@ -1,4 +1,3 @@ -'use client' import * as React from 'react' import type { diff --git a/packages/react-query/src/useQueries.ts b/packages/react-query/src/useQueries.ts index 50843fc5a4..d96ac1257b 100644 --- a/packages/react-query/src/useQueries.ts +++ b/packages/react-query/src/useQueries.ts @@ -1,4 +1,3 @@ -'use client' import * as React from 'react' import type { diff --git a/packages/react-query/src/useQuery.ts b/packages/react-query/src/useQuery.ts index cf97ba9c27..fc0c73d5de 100644 --- a/packages/react-query/src/useQuery.ts +++ b/packages/react-query/src/useQuery.ts @@ -1,4 +1,3 @@ -'use client' import type { QueryClient, QueryKey, DefaultError } from '@tanstack/query-core' import { QueryObserver } from '@tanstack/query-core' import type {