Skip to content

Commit

Permalink
fix: hydration conditional
Browse files Browse the repository at this point in the history
  • Loading branch information
jxom committed Apr 1, 2024
1 parent 3da20bb commit a3d1858
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
6 changes: 6 additions & 0 deletions .changeset/nervous-apples-eat.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
---
"@wagmi/core": patch
"wagmi": patch
---

Fixed hydration conditional in `createConfig`.
2 changes: 1 addition & 1 deletion packages/core/src/createConfig.ts
Original file line number Diff line number Diff line change
Expand Up @@ -284,7 +284,7 @@ export function createConfig<
newConnectors.push(connector)
}

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

Expand Down

0 comments on commit a3d1858

Please sign in to comment.