Skip to content
Snippets Groups Projects
Commit bab13f00 authored by Giannis Kopanas's avatar Giannis Kopanas
Browse files

fixing 409 eror with a workaround throttling instead of debounce

parent 47b8888e
No related branches found
No related tags found
No related merge requests found
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),
......
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