revolunet / react-mailchimp-subscribe

React subscribe form for Mailchimp.
https://revolunet.github.io/react-mailchimp-subscribe/
244 stars 49 forks source link

How to add a timeout value #31

Open lonelydatum opened 5 years ago

lonelydatum commented 5 years ago

My client is getting a Timeout error. I can't reproduce the error but I would like to try to add a timeout value of 2 seconds. Is this exposed as a property? If not how do I go into library to do it myself?

revolunet commented 5 years ago

Well that lib is using jsonp so you'll have to manage the timeout yourself in https://github.com/revolunet/react-mailchimp-subscribe/blob/master/src/index.js#L23

lonelydatum commented 5 years ago

Thanks I'll try that