Skip to content

Commit

Permalink
chore: fix some comments (#3703)
Browse files Browse the repository at this point in the history
Signed-off-by: rustrover <seekseat@126.com>
  • Loading branch information
rustrover authored Mar 15, 2024
1 parent d767265 commit 7e60b5e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion docs/core/guides/framework-adapters.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ Once you create a Wagmi Config, you'll need to make sure your framework has acce

All frameworks approach reactivity in a different way. To hook into your favorite frameworks, reactivity system, it's often helpful to see what other popular libraries for your framework are doing.

The most important thing to hook up Wagmi Core with your framework is to make sure changes to the Wagmi Config are tracked. This enables behavior, like switching chains or connecting accounts, to propogate throughout your app and update state. Check out [`useAccount`](https://github.com/wevm/wagmi/blob/main/packages/react/src/hooks/useAccount.ts), [`useChainId`](https://github.com/wevm/wagmi/blob/main/packages/react/src/hooks/useChainId.ts), [`useClient`](https://github.com/wevm/wagmi/blob/main/packages/react/src/hooks/useClient.ts), and [`useConnectorClient`](https://github.com/wevm/wagmi/blob/main/packages/react/src/hooks/useConnectorClient.ts) — versions of these for your framework are important to get right as they power a lot of internals.
The most important thing to hook up Wagmi Core with your framework is to make sure changes to the Wagmi Config are tracked. This enables behavior, like switching chains or connecting accounts, to propagate throughout your app and update state. Check out [`useAccount`](https://github.com/wevm/wagmi/blob/main/packages/react/src/hooks/useAccount.ts), [`useChainId`](https://github.com/wevm/wagmi/blob/main/packages/react/src/hooks/useChainId.ts), [`useClient`](https://github.com/wevm/wagmi/blob/main/packages/react/src/hooks/useClient.ts), and [`useConnectorClient`](https://github.com/wevm/wagmi/blob/main/packages/react/src/hooks/useConnectorClient.ts) — versions of these for your framework are important to get right as they power a lot of internals.

## TanStack Query

Expand Down
2 changes: 1 addition & 1 deletion docs/react/api/hooks/useAccountEffect.md
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ function App() {

`(() => void) | undefined`

Callback that is called when no more accounts are are connected.
Callback that is called when no more accounts are connected.

::: code-group
```tsx [index.tsx]
Expand Down

0 comments on commit 7e60b5e

Please sign in to comment.