Skip to content

Release 0.9.0

Choose a tag to compare

@RichardLindhout RichardLindhout released this 03 Dec 13:39
· 72 commits to main since this release

0.9.0 (2021-12-03)

Breaking change

 <TextInput
          mode="outlined"
          {...fh.text('postalCode', {
            enhance: (v) => {
--              return (v || '').toUpperCase()
++              return { value: (v || '').toUpperCase() };
            },
        
          })}
          label="Postalcode"
          error={hasError('postalCode')}
        />

Features

  • add support for enhancing all form values in enhance function BREAKING-CHANGE (0176ea3)

You can now edit the whole formValues in the enhance

 <TextInput
          mode="outlined"
          {...fh.text('postalCode', {
            enhance: (v, oldValues) => {
              return { 
                  newValues: { ...oldValues, postalChangeChangedCount: oldValues.postalChangeChangedCount++ },
                  value: (v || '').toUpperCase() },
            },
          })}
          label="Postalcode"
          error={hasError('postalCode')}
        />