Skip to content

Commit

Permalink
fix: prevent component re-rendering with the same account snapshot (#…
Browse files Browse the repository at this point in the history
…4229)

* fix: prevent component re-rendering with the same account snapshot

* test: check component re-rendering caused by useSyncExternalStoreWithTracked

* test: update

* chore: changeset

---------

Co-authored-by: Tom Meagher <tom@meagher.co>
  • Loading branch information
weilliao05621 and tmm authored Sep 27, 2024
1 parent 7063153 commit c6b8efd
Show file tree
Hide file tree
Showing 4 changed files with 253 additions and 198 deletions.
5 changes: 5 additions & 0 deletions .changeset/neat-turkeys-camp.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"wagmi": patch
---

Stabilized `useAccount` return type object reference.
176 changes: 0 additions & 176 deletions packages/react/src/hooks/useSyncExternalStoreWithTracked.test.ts

This file was deleted.

Loading

0 comments on commit c6b8efd

Please sign in to comment.