Skip to content

Add useStellarAccount Hook for Account Data Management#15

Merged
Iwueseiter merged 1 commit intoHubDApp:mainfrom
Henrichy:main
Feb 25, 2026
Merged

Add useStellarAccount Hook for Account Data Management#15
Iwueseiter merged 1 commit intoHubDApp:mainfrom
Henrichy:main

Conversation

@Henrichy
Copy link
Contributor

Closes #7

Summary

Implements a reusable React hook to fetch and manage Stellar account data across the application.

Changes

  • Created /hooks/useStellarAccount.ts
  • Integrates with existing Stellar service and Wallet context
  • Provides account data, balances, loading, and error states
  • Auto-fetches on wallet connection, clears on disconnect
  • Includes manual refetch capability

API

const { account, balances, loading, error, refetch } = useStellarAccount();

@Henrichy
Copy link
Contributor Author

@Iwueseiter please review this

@Iwueseiter Iwueseiter merged commit f5fb305 into HubDApp:main Feb 25, 2026
1 check passed
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.

Create reusable hook for fetching Stellar account data

2 participants