Fix/eager connection (#923)

* fix: eager connect

* chore: add comment for eslint disable
This commit is contained in:
Matthew Russell 2022-07-29 18:55:03 +01:00 committed by GitHub
parent 7e715d08ec
commit 5000474e0a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -63,7 +63,10 @@ export const Web3Content = ({
if (connector?.connectEagerly && !('Cypress' in window)) {
connector.connectEagerly();
}
}, [connector]);
// wallet connect doesnt handle connectEagerly being called when connector is also in the
// deps array.
// eslint-disable-next-line react-hooks/exhaustive-deps
}, []);
if (error) {
return (