Skip to content
Source
Sign inSign up
TanStack/form

[v2] Migration guide doesn't cover removed or renamed FormApi methods #2420

Opendasjideepak(GitHub profile, opens in a new tab) opened this issue 0 comments

The v2 migration guide covers the field-level changes well, but not the form-level methods that are gone or renamed. Comparing v1's FormApi with alpha:

  • Renamed: moveFieldValues → moveFieldValue
  • Removed: setFieldMeta, getFieldMeta, resetFieldMeta, validateField, validateAllFields, getAllErrors, setErrorMap, deleteField, getFieldInfo, parseValuesWithSchema, parseValuesWithSchemaAsync
  • (replaceFieldValue is already tracked in #2418)

None of these appear in docs/migrate-from-v1.md, so a v1 app that uses them gets type errors with no pointer to the v2 way. setFieldMeta (marking fields touched) and validateField (validating one field on demand) are common in v1 code.

Would a "Removed and renamed form methods" section with the v2 replacements be welcome? Happy to send a docs PR if someone can confirm the intended replacement for each one, for example whether validateField maps to form.validate(...).

Sign in to join this conversation.