After updating from 5.3.0 > 5.6.0 the decorator now does not return the value of a promise.
@track(props => ({
action: 'FormSubmit',
label: props.name || null,
}))
handleSubmit = values => this.props.onSubmit(values).then(() => {}, err => err);
The onSubmit function above returns a promise which returns an error to display submission errors via react-final-form. If the decorator is used this error does not get reported as the value isn't passed through.
After updating from
5.3.0>5.6.0the decorator now does not return the value of a promise.The
onSubmitfunction above returns a promise which returns an error to display submission errors viareact-final-form. If the decorator is used this error does not get reported as the value isn't passed through.