v0.39.0
Version 0.39.0 - 11/29/24, 9:06 AM (Manual Release)
Changes
Breaking Changes
This release introduces two breaking changes for our React adapter:
- Removing
form.useStore
in favor of@tanstack/react-store
'suseStore(form.store)
API - Removing
form.useField
in favor of other APIs
No other adapters have any changes in any other way.
We did not want to make either of these changes, but were forced to by the React Compiler not allowing for dynamic hooks. We're deeply sorry about these breaking changes and will do our best to mitigate future breaking changes prior to 1.0.
Migration Guides
To fix form.useStore(selectorFn)
you should be able to easily replace it with @tanstack/react-store
's useStore(form.store, selectorFn)
. These will behave identically from one another.
form.useField
, on the other hand, is more tricky. We generally discouraged you from using this hook from the very beginning and see its usage as an anti-pattern.
While migrating away from
useField
entirely is a better solution in the long-run, you can also importuseField
from@tanstack/react-form
and adduseField({form, ...otherProps})
as an interim migration strategy.
Packages
- @tanstack/form-core@0.39.0
- @tanstack/react-form@0.39.0
- @tanstack/vue-form@0.39.0
- @tanstack/zod-form-adapter@0.39.0
- @tanstack/yup-form-adapter@0.39.0
- @tanstack/valibot-form-adapter@0.39.0
- @tanstack/solid-form@0.39.0
- @tanstack/lit-form@0.39.0
- @tanstack/angular-form@0.39.0