Skip to content

Conversation

@AtelyPham
Copy link
Member

Summary of changes

This PR fixes issues in the useCredits hook by updating the result type validation and optimizing the refetch interval for better user experience.

Changes made:

  • Updated response schema to handle both bigint and number types for the result field
  • Reduced refetch interval from 30 seconds to 6 seconds for more responsive credit updates

Proposed area of change

  • apps/tangle-dapp
  • apps/tangle-cloud
  • apps/leaderboard
  • libs/tangle-shared-ui
  • libs/ui-components

Associated issue(s)

  • Fixes credit fetching type compatibility issues
  • Improves user experience with more frequent credit updates

Screen Recording

No screen recording needed for this backend/data fetching fix.

@netlify
Copy link

netlify bot commented May 30, 2025

Deploy Preview for tangle-cloud ready!

Name Link
🔨 Latest commit 37a883b
🔍 Latest deploy log https://app.netlify.com/projects/tangle-cloud/deploys/683a362a9e51020008fe636b
😎 Deploy Preview https://deploy-preview-3026--tangle-cloud.netlify.app
📱 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 project configuration.

@netlify
Copy link

netlify bot commented May 30, 2025

Deploy Preview for tangle-dapp ready!

Name Link
🔨 Latest commit 37a883b
🔍 Latest deploy log https://app.netlify.com/projects/tangle-dapp/deploys/683a362a4f27d800088e0211
😎 Deploy Preview https://deploy-preview-3026--tangle-dapp.netlify.app
📱 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 project configuration.

@netlify
Copy link

netlify bot commented May 30, 2025

Deploy Preview for tangle-leaderboard ready!

Name Link
🔨 Latest commit 37a883b
🔍 Latest deploy log https://app.netlify.com/projects/tangle-leaderboard/deploys/683a362a81056100088d56ab
😎 Deploy Preview https://deploy-preview-3026--tangle-leaderboard.netlify.app
📱 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 project configuration.

@github-project-automation github-project-automation bot moved this to Not Started 🕧 in Tangle Universe May 30, 2025
@AtelyPham AtelyPham moved this from Not Started 🕧 to Building 🏗️ in Tangle Universe May 30, 2025
@AtelyPham AtelyPham merged commit b721e89 into develop May 30, 2025
20 checks passed
@AtelyPham AtelyPham deleted the trung-tin/change-credit-fetcher-interval branch May 30, 2025 23:10
@github-project-automation github-project-automation bot moved this from Building 🏗️ to Completed ✅ in Tangle Universe May 30, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

Status: Completed ✅

Development

Successfully merging this pull request may close these issues.

4 participants