npm / react-final-form
react-final-form
What changed in react-final-form 5 to 7, from its official release notes, upgrade guides and advisories. Sources checked 2026-11-30.
15 breaking2 new APIs and options1 performance12 fixes and other
See which of these apply to your code, ranked, in your agent:
npx @unstale/cli initreact-final-form 711 changes
Fixes and other changes 11
Initial values are no longer lost when destroyOnUnregister is used in StrictMode.
The input prop override is no longer ignored in the Field component.
A select with multiple defaults to an empty array.
Lazy state is spread correctly in FormSpy render props.
onChange is called with the initial state when FormSpy mounts.
Removing the HTMLElement constraint fixes React Native compatibility.
The field name prop no longer shadows DOM properties.
Field name and value stay in sync when the name prop changes dynamically.
Checkbox and radio checked logic now uses parse instead of format.
Spreading props no longer overwrites getter-only properties.
useField now returns the field's initial value, rather than the form's initialValues, on first render.
react-final-form 64 changes
Breaking changes 3
Passing null is no longer allowed; pass an identity function to disable the existing format functionality.
Passing null is no longer allowed; pass an identity function to disable the existing parse functionality.
Changes to the subscription prop are ignored; change the key prop to destroy and remount the component with a new subscription.
Fixes and other changes 1
Fixed form component rerendering so it responds properly to changes in form state.
react-final-form 515 changes
Breaking changes 12
Removed from FormRenderProps and FormSpyRenderProps; use the form instance instead.
Removed from FormRenderProps and FormSpyRenderProps; use the form instance instead.
Removed from FormRenderProps and FormSpyRenderProps; use the form instance instead.
A changed validate prop no longer causes Field to rerender, though the latest validation function still runs; change Field's key when swapping validators with different behavior.
Removed from FormRenderProps and FormSpyRenderProps; use the form instance instead.
Render props now provide the FormApi as form instead of spreading its methods into the props.
Removed from FormRenderProps and FormSpyRenderProps; use the form instance instead.
Removed from FormRenderProps and FormSpyRenderProps; use the form instance instead.
Requires React ^16.8.0 to use hooks.
Removed from FormRenderProps and FormSpyRenderProps; use the form instance instead.
Use this hook to get the Final Form instance out of context, including as a replacement for the removed HOC.
The exported HOC was removed; use useForm() to access the Final Form instance from context.
New APIs and options 2
Exported hook for using field functionality directly, including subscriptions such as touched and error.
Exported hook used internally in FormSpy, enabling direct use of form state.
Performance 1
Hooks enable optimizations to minimize superfluous additional renders.