ShouldUpdateState hook
componentDidMount() {
this.formStateManager = Store.store.select(['form']).form
.bind(this.form.current)
.addCustomFormElements([this.customFormElement.current])
.shouldUpdateState(this.shouldUpdateState)
.onChange(state => this.forceUpdate())
.sync();
}shouldUpdateState = (params: ShoulUpdateStateParams) => {
return true;
}ShouldUpdateStateParams:
Last updated