-
-
Notifications
You must be signed in to change notification settings - Fork 601
Open
Description
Describe the bug
We have a fair few places in our codebase where we have previously done
const formState = useStore(form.store);which has worked fine until I just tried to upgrade to 1.28.4, where it now fails with
src/App.tsx:13:21 - error TS2554: Expected 2-3 arguments, but got 1.
13 const formState = useStore(form.store)
And yes, I know this is not how you're supposed to write it, but that's how it was written by the guy who wrote it.
Your minimal, reproducible example
https://github.com/sondr3/tanstack-react-form-types
Steps to reproduce
pnpm build- Observe type error
Expected behavior
No breaking changes in patch releases.
How often does this bug happen?
Every time
Screenshots or Videos
No response
Platform
N/A
TanStack Form adapter
react-form
TanStack Form version
1.28.4
TypeScript version
5.9.3
Additional context
No response
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels