https://codesandbox.io/s/zn812n05v4
const mapDispatchToProps = dispatch => {
console.log("mapDispatchToProps--->", dispatch);
return {
fetchHistoryBenchmarkDatafromURL: () => {
dispatch(showLoading("sectionBar"));
// dispatch(fetchHistoryBenchmarkDatafromURL());
}
};
};
export default reduxForm({
form: "syncValidation", // a unique identifier for this form
validate, // <--- validation function given to redux-form
warn // <--- warning function given to redux-form
})(connect(mapDispatchToProps)(SyncValidationForm));
ошибка
RangeError: Maximum call stack size exceeded
at runBatchedUpdates (ReactUpdates.js:150)
at ReactReconcileTransaction.perform (Transaction.js:143)
at ReactUpdatesFlushTransaction.perform (Transaction.js:143)
at ReactUpdatesFlushTransaction.perform (ReactUpdates.js:89)
at flushBatchedUpdates (ReactUpdates.js:172)
at ReactUpdatesFlushTransaction.close (ReactUpdates.js:47)
at ReactUpdatesFlushTransaction.closeAll (Transaction.js:209)
at ReactUpdatesFlushTransaction.perform (Transaction.js:156)
at ReactUpdatesFlushTransaction.perform (ReactUpdates.js:89)
at flushBatchedUpdates (ReactUpdates.js:172)
at ReactUpdatesFlushTransaction.close (ReactUpdates.js:47)
at ReactUpdatesFlushTransaction.closeAll (Transaction.js:209)
at ReactUpdatesFlushTransaction.perform (Transaction.js:156)
at ReactUpdatesFlushTransaction.perform (ReactUpdates.js:89)
at flushBatchedUpdates (ReactUpdates.js:172)
at ReactUpdatesFlushTransaction.close (ReactUpdates.js:47)
at ReactUpdatesFlushTransaction.closeAll (Transaction.js:209)
at ReactUpdatesFlushTransaction.perform (Transaction.js:156)
at ReactUpdatesFlushTransaction.perform (ReactUpdates.js:89)
at flushBatchedUpdates (ReactUpdates.js:172)
at ReactUpdatesFlushTransaction.close (ReactUpdates.js:47)
at ReactUpdatesFlushTransaction.closeAll (Transaction.js:209)
at ReactUpdatesFlushTransaction.perform (Transaction.js:156)
at ReactUpdatesFlushTransaction.perform (ReactUpdates.js:89)
at flushBatchedUpdates (ReactUpdates.js:172)
at ReactUpdatesFlushTransaction.close (ReactUpdates.js:47)
at ReactUpdatesFlushTransaction.closeAll (Transaction.js:209)
at ReactUpdatesFlushTransaction.perform (Transaction.js:156)
at ReactUpdatesFlushTransaction.perform (ReactUpdates.js:89)
at flushBatchedUpdates (ReactUpdates.js:172)
at ReactUpdatesFlushTransaction.close (ReactUpdates.js:47)
at ReactUpdatesFlushTransaction.closeAll (Transaction.js:209)
at ReactUpdatesFlushTransaction.perform (Transaction.js:156)
at ReactUpdatesFlushTransaction.perform (ReactUpdates.js:89)
at flushBatchedUpdates (ReactUpdates.js:172)
at ReactUpdatesFlushTransaction.close (ReactUpdates.js:47)
at ReactUpdatesFlushTransaction.closeAll (Transaction.js:209)
at ReactUpdatesFlushTransaction.perform (Transaction.js:156)
at ReactUpdatesFlushTransaction.perform (ReactUpdates.js:89)
at flushBatchedUpdates (ReactUpdates.js:172)
at ReactUpdatesFlushTransaction.close (ReactUpdates.js:47)
at ReactUpdatesFlushTransaction.closeAll (Transaction.js:209)
at ReactUpdatesFlushTransaction.perform (Transaction.js:156)
at ReactUpdatesFlushTransaction.perform (ReactUpdates.js:89)
at flushBatchedUpdates (ReactUpdates.js:172)
at ReactUpdatesFlushTransaction.close (ReactUpdates.js:47)
at ReactUpdatesFlushTransaction.closeAll (Transaction.js:209)
at ReactUpdatesFlushTransaction.perform (Transaction.js:156)
at ReactUpdatesFlushTransaction.perform (ReactUpdates.js:89)
at flushBatchedUpdates (ReactUpdates.js:172)