Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
dispatch.lazy(type, () => {
return isStateModel(payload) ? payload.getState() : payload
})
})
dispatch.lazy(type, () => {
return isStateModel(payload) ? payload.getState() : payload
})
if (type === LifeCycleTypes.ON_FORM_INPUT_CHANGE) {
({ type, payload }: { type: string; payload: IModel }) => {
dispatch.lazy(type, () => {
return isStateModel(payload) ? payload.getState() : payload
})
if (type === LifeCycleTypes.ON_FORM_INPUT_CHANGE) {
if (props.onChange) {
props.onChange(
isStateModel(payload)
? payload.getState((state: IFormState) => state.values)
: {}
)
}
}
if (broadcast) {
broadcast.notify({ type, payload })
}
}
),