Commit 9cb0ef90 authored by Alexandros Georgantas's avatar Alexandros Georgantas

Merge branch '140-control-panel-not-loading' into 'master'

fixing 409 eror with a workaround throttling instead of debounce

Closes #140

See merge request !122
parents 47b8888e bab13f00
Pipeline #4683 passed with stages
in 3 minutes and 48 seconds
import { pick, debounce } from 'lodash'
import { pick, throttle } from 'lodash'
import { compose, withProps, withState, withHandlers } from 'recompose'
import { connect } from 'react-redux'
import { reduxForm, SubmissionError } from 'redux-form'
......@@ -92,7 +92,7 @@ export default compose(
reduxForm({
// enableReinitialize: true,
form: 'submit',
onChange: debounce(onChange, 1000, { maxWait: 5000 }),
onChange: throttle(onChange, 3000, { trailing: false }),
onSubmit,
}),
withState('confirming', 'setConfirming', false),
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment