Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Don't refetch token balances every 20 seconds #2189

Merged
merged 1 commit into from
Jul 31, 2024

Conversation

adamgall
Copy link
Member

Closes #2185.

We were using up our allotted Netlify Functions invocations much faster than anticipated (and are almost past our "free tier" usage), and a likely culprit was the fact that when a Safe is loaded, we re-fetch token/nft balances every 20 seconds.

This seems excessive.

This PR removes that timer and simply fetches balances at page load once, then no more.

Copy link

netlify bot commented Jul 30, 2024

Deploy Preview for decent-interface-dev ready!

Name Link
🔨 Latest commit 456c8ce
🔍 Latest deploy log https://app.netlify.com/sites/decent-interface-dev/deploys/66a900fbfc86040009708591
😎 Deploy Preview https://deploy-preview-2189.app.dev.decentdao.org
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site configuration.

@adamgall adamgall merged commit 01c3086 into develop Jul 31, 2024
7 checks passed
@adamgall adamgall deleted the fetch-token-balances-once branch July 31, 2024 13:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Don't re-fetch Token or NFT balances every 20 seconds
3 participants