useFieldContext crashes when react compiler is enabled in expo
Open
Nobody has claimed this yet.
type: bug
v1
v2
- Dominant language
- TypeScript
- Stars
- 6.7k
- Forks
- 682
- Avg merge
- 5d 18h
- Merged PRs (30d)
- 7
Description
Describe the bug
App crashes when react compiler is enabled using expo 53
Warning: TypeError: useFieldContext is not a function (it is undefined)
Your minimal, reproducible example
None
Steps to reproduce
Implement useFieldContext with react compiler enabled in expo 53
Expected behavior
Should not cause error
How often does this bug happen?
None
Screenshots or Videos
No response
Platform
- Expo 53 with react compiler enabled
- iOS
TanStack Form adapter
react-form
TanStack Form version
1.11.1
TypeScript version
No response
Additional context
No response
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by reproducing the crash in Expo 53 with the React compiler enabled, using the react-form adapter and the useFieldContext entry point. Inspect why useFieldContext is undefined on iOS and verify that implementing it no longer crashes the app; no source file or test is named in the issue.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- react, typescript
- Domain
- frontend, mobile-dev
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 30/100