Skip to content

Commit b647c03

Browse files
committed
fix: client directive
1 parent bec8786 commit b647c03

File tree

4 files changed

+8
-1
lines changed

4 files changed

+8
-1
lines changed

packages/react-form/src/createFormHook.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
'use client'
12
/* eslint-disable @eslint-react/no-context-provider */
23
import { createContext, useContext, useMemo } from 'react'
34
import { useForm } from './useForm'

packages/react-form/src/useField.tsx

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,6 @@
1-
import React, { useMemo, useState } from 'react'
1+
'use client'
2+
3+
import { useMemo, useState } from 'react'
24
import { useStore } from '@tanstack/react-store'
35
import { FieldApi, functionalUpdate } from '@tanstack/form-core'
46
import { useIsomorphicLayoutEffect } from './useIsomorphicLayoutEffect'

packages/react-form/src/useFieldGroup.tsx

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
'use client'
2+
13
import { useState } from 'react'
24
import { useStore } from '@tanstack/react-store'
35
import { FieldGroupApi, functionalUpdate } from '@tanstack/form-core'

packages/react-form/src/useForm.tsx

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
'use client'
2+
13
import { FormApi, functionalUpdate } from '@tanstack/form-core'
24
import { useStore } from '@tanstack/react-store'
35
import { useState } from 'react'

0 commit comments

Comments
 (0)