v6.0.0
This release contains very minimal, edge-case, breaking changes.
Bug Fixes
- Fixed bug in form component rerendering not responding to changes in form state properly. #498 #487 #492
鈿狅笍 Breaking Changes 鈿狅笍
- Subscription changes will now be ignored. For some reason previous versions of React Final Form did extra work to allow you to change the
subscription
prop, causing the component to reregister with the Final Form instance. That is a very rare use case, and it was a lot of code to enable it. If you need to change your subscription prop, you should also change thekey
prop, which will force the component to be destroyed and remounted with the new subscription. parse={null}
andformat={null}
are no longer allowed. That was a bad choice of API design, which is probably why Flow doesn't allow theFunction | null
union type. #400 Passingnull
served the purpose of disabling the defaultparse
andformat
functionality. If you need to disable the existingparse
andformat
, you can pass an identity function,v => v
, toparse
andformat
.
< v6
<Field name="name" parse={null} format={null}/>
>= v6
const identity = v => v
...
<Field name="name" parse={identity} format={identity}/>