Skip to content

fix(tangle-dapp): update result type and reduce refetch interval in useCredits#3026

Merged
AtelyPham merged 2 commits into
developfrom
trung-tin/change-credit-fetcher-interval
May 30, 2025
Merged

fix(tangle-dapp): update result type and reduce refetch interval in useCredits#3026
AtelyPham merged 2 commits into
developfrom
trung-tin/change-credit-fetcher-interval

Conversation

@AtelyPham

Copy link
Copy Markdown
Contributor

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

netlify Bot commented May 30, 2025

Copy link
Copy Markdown

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

netlify Bot commented May 30, 2025

Copy link
Copy Markdown

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

netlify Bot commented May 30, 2025

Copy link
Copy Markdown

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.

3 participants