truffle-box / react-auth-box

Truffle, Webpack, React, Redux boilerplate with routing and authentication via a smart contract.
https://truffle-box.github.io/
MIT License
176 stars 66 forks source link

Synchronous XMLHttpRequest on the main thread is deprecated #11

Closed armova closed 7 years ago

armova commented 7 years ago

httpprovider.js:61 [Deprecation] Synchronous XMLHttpRequest on the main thread is deprecated because of its detrimental effects to the end user's experience. For more help, check https://xhr.spec.whatwg.org/.

How can I get rid of this by setting web3 to async?

Have tried by passing a callback function in the call to web3's functions as suggested by the web3 docs but is not working.

Will appreciate any help.

rstormsf commented 7 years ago

I had this issue when I had chrome redux devtool enabled.

armova commented 7 years ago

@rstormsf thanks! it works