@web3-react/core
Advanced tools
Comparing version 8.0.34-beta.0 to 8.0.35-beta.0
@@ -34,3 +34,8 @@ "use strict"; | ||
if (connectors.length != cachedConnectors.current.length || | ||
connectors.some((connector, i) => connector !== cachedConnectors.current[i])) | ||
connectors.some((connector, i) => { | ||
const cachedConnector = cachedConnectors.current[i]; | ||
// because a "connector" is actually an array, we want to be sure to only perform an equality check on the actual Connector | ||
// class instance, to see if they're the same object | ||
return connector[0] !== cachedConnector[0]; | ||
})) | ||
throw new Error('The connectors prop passed to Web3ReactProvider must be referentially static. If connectors is changing, try providing a key prop to Web3ReactProvider that changes every time connectors changes.'); | ||
@@ -37,0 +42,0 @@ const hooks = (0, hooks_1.getPriorityConnector)(...connectors); |
@@ -12,3 +12,3 @@ { | ||
}, | ||
"version": "8.0.34-beta.0", | ||
"version": "8.0.35-beta.0", | ||
"files": [ | ||
@@ -37,3 +37,3 @@ "dist/*" | ||
}, | ||
"gitHead": "22a9b2a2d8cc33c386b839bbe3a247cbc0d9285f" | ||
"gitHead": "40df75f69b0ba971b2f628bfeda8cecfd87d404c" | ||
} |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
64713
564