Skip to content

Commit f57c8dc

Browse files
girishsontakkeTkDodoEphem
authored
feat(client components): add use client directive at the top of files having client components (#4738)
Co-authored-by: Dominik Dorfmeister <office@dorfmeister.cc> Co-authored-by: Fredrik Höglund <fredrik.hoglund@gmail.com>
1 parent ea67377 commit f57c8dc

File tree

8 files changed

+8
-0
lines changed

8 files changed

+8
-0
lines changed

packages/react-query-devtools/src/Explorer.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
'use client'
12
import * as React from 'react'
23

34
import { displayValue, styled } from './utils'

packages/react-query-devtools/src/devtools.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
'use client'
12
import * as React from 'react'
23
import { useSyncExternalStore } from './useSyncExternalStore'
34
import type {

packages/react-query-devtools/src/theme.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
'use client'
12
import * as React from 'react'
23

34
export const defaultTheme = {

packages/react-query-persist-client/src/PersistQueryClientProvider.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
'use client'
12
import * as React from 'react'
23

34
import type { PersistQueryClientOptions } from '@tanstack/query-persist-client-core'

packages/react-query/src/Hydrate.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
'use client'
12
import * as React from 'react'
23

34
import type { HydrateOptions } from '@tanstack/query-core'

packages/react-query/src/QueryClientProvider.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
'use client'
12
import * as React from 'react'
23

34
import type { QueryClient } from '@tanstack/query-core'

packages/react-query/src/QueryErrorResetBoundary.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
'use client'
12
import * as React from 'react'
23

34
// CONTEXT

packages/react-query/src/isRestoring.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
'use client'
12
import * as React from 'react'
23

34
const IsRestoringContext = React.createContext(false)

0 commit comments

Comments
 (0)