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

fix: hooks with outdated data or stuck in loading #397

Draft
wants to merge 36 commits into
base: main
Choose a base branch
from

Conversation

arthurgeron
Copy link
Contributor

  • Fixes useProvider not being updated on account/network changes
  • Fixes useProvider stuck on isFetching
  • useWallet, useAccount, useProvider now properly refetches and update when required
  • Replaced useChain internally from useQuery to useMemo since the method call is synchronous
  • useProvider now returns useWallet.provider directly
  • New useNetworkProvider, which accepts custom network and chainId

Copy link

vercel bot commented Oct 14, 2024

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
fuel-connectors ✅ Ready (Inspect) Visit Preview 💬 Add feedback Oct 15, 2024 8:09pm

Copy link
Contributor

github-actions bot commented Oct 14, 2024

Coverage Report for Fuel Wallet (./packages/fuel-wallet)

Status Category Percentage Covered / Total
🔵 Lines 61.3% 141 / 230
🔵 Statements 61.3% 141 / 230
🔵 Functions 56.66% 17 / 30
🔵 Branches 86.95% 20 / 23
File CoverageNo changed files found.
Generated in workflow #1051 for commit 68a91c8 by the Vitest Coverage Report Action

Copy link
Contributor

github-actions bot commented Oct 14, 2024

Coverage Report for Fuel Development Wallet (./packages/fuel-development-wallet)

Status Category Percentage Covered / Total
🔵 Lines 100% 16 / 16
🔵 Statements 100% 16 / 16
🔵 Functions 100% 1 / 1
🔵 Branches 100% 1 / 1
File CoverageNo changed files found.
Generated in workflow #1051 for commit 68a91c8 by the Vitest Coverage Report Action

Copy link
Contributor

github-actions bot commented Oct 14, 2024

Coverage Report for Fuelet Wallet (./packages/fuelet-wallet)

Status Category Percentage Covered / Total
🔵 Lines 100% 19 / 19
🔵 Statements 100% 19 / 19
🔵 Functions 100% 1 / 1
🔵 Branches 100% 1 / 1
File CoverageNo changed files found.
Generated in workflow #1051 for commit 68a91c8 by the Vitest Coverage Report Action

Copy link
Contributor

github-actions bot commented Oct 14, 2024

This PR is published in NPM with version ****

@arthurgeron arthurgeron changed the title fix: hooks with outdated data or stuck in loading fix: hooks with outdated data or stuck in loading Oct 14, 2024
@arthurgeron arthurgeron enabled auto-merge (squash) October 14, 2024 20:38
@arthurgeron arthurgeron deleted the ag/fix/fe-751 branch October 14, 2024 20:50
@arthurgeron arthurgeron restored the ag/fix/fe-751 branch October 15, 2024 02:07
@arthurgeron arthurgeron reopened this Oct 15, 2024
@arthurgeron arthurgeron marked this pull request as draft October 15, 2024 20:07
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.

1 participant