Skip to content

Commit

Permalink
chore: changeset
Browse files Browse the repository at this point in the history
  • Loading branch information
jxom committed Mar 26, 2024
1 parent 83e3802 commit dbdca8f
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
6 changes: 6 additions & 0 deletions .changeset/rotten-fireants-knock.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
---
"@wagmi/core": patch
"wagmi": patch
---

Fixed issue where duplicate connectors could be instantiated if injected after page mount.
2 changes: 1 addition & 1 deletion packages/core/src/createConfig.ts
Original file line number Diff line number Diff line change
Expand Up @@ -285,7 +285,7 @@ export function createConfig<
newConnectors.push(connector)
}

if (!store.persist.hasHydrated()) return
if (parameters.storage && !store.persist.hasHydrated()) return
connectors.setState((x) => uniqueBy([...x, ...newConnectors], 'id'), true)
})

Expand Down

0 comments on commit dbdca8f

Please sign in to comment.