Skip to content

Commit

Permalink
refactor: remove 'use client' from non-components
Browse files Browse the repository at this point in the history
  • Loading branch information
TkDodo committed May 27, 2023
1 parent 28e0e28 commit 8ecac66
Show file tree
Hide file tree
Showing 9 changed files with 0 additions and 9 deletions.
1 change: 0 additions & 1 deletion packages/react-query/src/errorBoundaryUtils.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
'use client'
import type {
DefaultedQueryObserverOptions,
Query,
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
'use client'
import * as React from 'react'

const IsRestoringContext = React.createContext(false)
Expand Down
1 change: 0 additions & 1 deletion packages/react-query/src/useBaseQuery.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
'use client'
import * as React from 'react'

import type { QueryClient, QueryKey, QueryObserver } from '@tanstack/query-core'
Expand Down
1 change: 0 additions & 1 deletion packages/react-query/src/useInfiniteQuery.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
'use client'
import type {
QueryObserver,
QueryKey,
Expand Down
1 change: 0 additions & 1 deletion packages/react-query/src/useIsFetching.ts
Original file line number Diff line number Diff line change
@@ -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'
Expand Down
1 change: 0 additions & 1 deletion packages/react-query/src/useMutation.ts
Original file line number Diff line number Diff line change
@@ -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'
Expand Down
1 change: 0 additions & 1 deletion packages/react-query/src/useMutationState.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
'use client'
import * as React from 'react'

import type {
Expand Down
1 change: 0 additions & 1 deletion packages/react-query/src/useQueries.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
'use client'
import * as React from 'react'

import type {
Expand Down
1 change: 0 additions & 1 deletion packages/react-query/src/useQuery.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
'use client'
import type { QueryClient, QueryKey, DefaultError } from '@tanstack/query-core'
import { QueryObserver } from '@tanstack/query-core'
import type {
Expand Down

0 comments on commit 8ecac66

Please sign in to comment.