Skip to content

v6.0.0

Compare
Choose a tag to compare
@erikras erikras released this 27 May 10:13
· 193 commits to master since this release
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 the key prop, which will force the component to be destroyed and remounted with the new subscription.
  • parse={null} and format={null} are no longer allowed. That was a bad choice of API design, which is probably why Flow doesn't allow the Function | null union type. #400 Passing null served the purpose of disabling the default parse and format functionality. If you need to disable the existing parse and format, you can pass an identity function, v => v, to parse and format.

< v6

<Field name="name" parse={null} format={null}/>

>= v6

const identity = v => v
...
<Field name="name" parse={identity} format={identity}/>

v5.1.2...v6.0.0