-
Notifications
You must be signed in to change notification settings - Fork 142
feat: reload balances on txs updates #3563
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
base: main
Are you sure you want to change the base?
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pull request overview
This PR adds functionality to automatically reload account balances when transaction updates are received via a GraphQL subscription. The implementation follows the existing pattern used for Lightning Network updates in the codebase.
Key Changes:
- Created a new subscription component that listens for account updates (IntraLedger, Lightning, and OnChain transactions)
- Wrapped the HomeScreen with a higher-order component to enable real-time balance updates
- Generated corresponding GraphQL types and subscription hooks
Reviewed changes
Copilot reviewed 2 out of 4 changed files in this pull request and generated 3 comments.
| File | Description |
|---|---|
app/screens/home-screen/my-account-updates-sub.tsx |
New subscription component that refetches HomeAuthed query when relevant transaction updates occur |
app/screens/home-screen/home-screen.tsx |
Wrapped HomeScreen component with the new subscription HOC to enable real-time updates |
app/graphql/generated.ts |
Auto-generated TypeScript types and hooks for the new accountUpdates subscription |
app/graphql/generated.gql |
Auto-generated GraphQL document for the accountUpdates subscription |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pull request overview
Copilot reviewed 3 out of 5 changed files in this pull request and generated 1 comment.
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
No description provided.