@wagmi/core 0.10.14 → 0.10.15
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -3034,7 +3034,9 @@ function watchNetwork(callback, { selector = (x) => x } = {}) {
|
|
|
3034
3034
|
import { shallow as shallow6 } from "zustand/shallow";
|
|
3035
3035
|
function watchSigner({ chainId }, callback) {
|
|
3036
3036
|
const client2 = getClient();
|
|
3037
|
-
const handleChange = async () => {
|
|
3037
|
+
const handleChange = async ({ chainId: chainId_ }) => {
|
|
3038
|
+
if (chainId && chainId_ && chainId !== chainId_)
|
|
3039
|
+
return;
|
|
3038
3040
|
const signer = await fetchSigner({ chainId });
|
|
3039
3041
|
if (!getClient().connector)
|
|
3040
3042
|
return callback(null);
|
package/dist/index.js
CHANGED
package/dist/internal/index.js
CHANGED
package/dist/internal/test.js
CHANGED