Skip to content

Commit

Permalink
Keep previous balance data to avoid re-loading/blocking user interact…
Browse files Browse the repository at this point in the history
…ion (#505)
  • Loading branch information
toddkao authored Nov 26, 2024
1 parent 4a48064 commit 10dcd41
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
5 changes: 5 additions & 0 deletions .changeset/moody-seas-deliver.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@skip-go/widget': patch
---

Keep previous balance data to avoid reloading
1 change: 1 addition & 0 deletions packages/widget/src/state/balances.ts
Original file line number Diff line number Diff line change
Expand Up @@ -93,5 +93,6 @@ export const skipAllBalancesAtom = atomWithQuery((get) => {
refetchInterval: 1000 * 60,
retry: 1,
gcTime: 0,
placeholderData: (previousData) => previousData
};
});

0 comments on commit 10dcd41

Please sign in to comment.