Skip to content
This repository has been archived by the owner on May 16, 2024. It is now read-only.

Commit

Permalink
Merge pull request #157 from unicape/1.x
Browse files Browse the repository at this point in the history
fix: useBlock parameters passthrough
  • Loading branch information
unicape authored Jan 29, 2024
2 parents be9c803 + 75cda44 commit 77e1a22
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
5 changes: 5 additions & 0 deletions .changeset/tasty-bugs-sing.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"use-wagmi": patch
---

useBlock parameters passthrough
1 change: 1 addition & 0 deletions packages/vue/src/hooks/useBlock.ts
Original file line number Diff line number Diff line change
Expand Up @@ -112,6 +112,7 @@ export function useBlock<
const { query = {} } = _parameters

const options = getBlockQueryOptions(config, {
..._parameters,
chainId: _parameters.chainId ?? chainId.value,
})
const enabled = Boolean(query.enabled ?? true)
Expand Down

0 comments on commit 77e1a22

Please sign in to comment.