wagmi 0.5.2 → 0.5.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -571,7 +571,7 @@ function useSyncExternalStoreWithTracked(subscribe, getSnapshot) {
571
571
  let isEqual = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : (a, b) => deepEqual(a, b);
572
572
  const trackedKeys = React__namespace.useRef([]);
573
573
  const result = withSelector_js.useSyncExternalStoreWithSelector(subscribe, getSnapshot, getServerSnapshot, x => x, (a, b) => {
574
- if (isPlainObject(a) && isPlainObject(b) && trackedKeys.current.length > 0) {
574
+ if (isPlainObject(a) && isPlainObject(b)) {
575
575
  for (const key of trackedKeys.current) {
576
576
  const equal = isEqual(a[key], b[key]);
577
577
  if (!equal) return false;
@@ -571,7 +571,7 @@ function useSyncExternalStoreWithTracked(subscribe, getSnapshot) {
571
571
  let isEqual = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : (a, b) => deepEqual(a, b);
572
572
  const trackedKeys = React__namespace.useRef([]);
573
573
  const result = withSelector_js.useSyncExternalStoreWithSelector(subscribe, getSnapshot, getServerSnapshot, x => x, (a, b) => {
574
- if (isPlainObject(a) && isPlainObject(b) && trackedKeys.current.length > 0) {
574
+ if (isPlainObject(a) && isPlainObject(b)) {
575
575
  for (const key of trackedKeys.current) {
576
576
  const equal = isEqual(a[key], b[key]);
577
577
  if (!equal) return false;
package/dist/wagmi.esm.js CHANGED
@@ -547,7 +547,7 @@ function useSyncExternalStoreWithTracked(subscribe, getSnapshot) {
547
547
  let isEqual = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : (a, b) => deepEqual(a, b);
548
548
  const trackedKeys = React.useRef([]);
549
549
  const result = useSyncExternalStoreWithSelector(subscribe, getSnapshot, getServerSnapshot, x => x, (a, b) => {
550
- if (isPlainObject(a) && isPlainObject(b) && trackedKeys.current.length > 0) {
550
+ if (isPlainObject(a) && isPlainObject(b)) {
551
551
  for (const key of trackedKeys.current) {
552
552
  const equal = isEqual(a[key], b[key]);
553
553
  if (!equal) return false;
package/package.json CHANGED
@@ -2,7 +2,7 @@
2
2
  "name": "wagmi",
3
3
  "description": "React Hooks for Ethereum",
4
4
  "license": "WAGMIT",
5
- "version": "0.5.2",
5
+ "version": "0.5.3",
6
6
  "repository": "tmm/wagmi",
7
7
  "author": "awkweb.eth",
8
8
  "homepage": "https://wagmi.sh",