Skip to content

feat(client components): add use client directive at the top of files having client components #4738

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 9 commits into from
Jan 24, 2023
1 change: 1 addition & 0 deletions packages/react-query-devtools/src/Explorer.tsx
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
'use client'
import * as React from 'react'

import { displayValue, styled } from './utils'
Expand Down
1 change: 1 addition & 0 deletions packages/react-query-devtools/src/devtools.tsx
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
'use client'
import * as React from 'react'
import { useSyncExternalStore } from './useSyncExternalStore'
import type {
Expand Down
1 change: 1 addition & 0 deletions packages/react-query-devtools/src/theme.tsx
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
'use client'
import * as React from 'react'

export const defaultTheme = {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
'use client'
import * as React from 'react'

import type { PersistQueryClientOptions } from '@tanstack/query-persist-client-core'
Expand Down
1 change: 1 addition & 0 deletions packages/react-query/src/Hydrate.tsx
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
'use client'
import * as React from 'react'

import type { HydrateOptions } from '@tanstack/query-core'
Expand Down
1 change: 1 addition & 0 deletions packages/react-query/src/QueryClientProvider.tsx
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
'use client'
import * as React from 'react'

import type { QueryClient } from '@tanstack/query-core'
Expand Down
1 change: 1 addition & 0 deletions packages/react-query/src/QueryErrorResetBoundary.tsx
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
'use client'
import * as React from 'react'

// CONTEXT
Expand Down
1 change: 1 addition & 0 deletions packages/react-query/src/isRestoring.tsx
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
'use client'
import * as React from 'react'

const IsRestoringContext = React.createContext(false)
Expand Down