Skip to content

Conversation

@limpbrains
Copy link
Contributor

@limpbrains limpbrains commented Nov 15, 2024

Description

  • use getOnchainWalletAsync where possible
  • throw an error in sync methods
  • useOnchainWallet hook to use in react components and wait for the wallet to be loaded
  • new beignet with this patch. Now wallet creation is much faster, because it doesn't wait for sync to be complete

This is still not perfect, and we still use sync methods sometimes. I think we can elliminate the remaining issues later

Linked Issues/Tasks

closes #2254 #2202

Type of change

Bug fix

Tests

No test

Screenshot / Video

Insert relevant screenshot / recording

QA Notes

  • start the app
  • try to tap somewhere fast

@limpbrains limpbrains force-pushed the async-wallet branch 3 times, most recently from ef9f017 to 2055447 Compare November 19, 2024 16:58
@socket-security
Copy link

socket-security bot commented Nov 19, 2024

New and removed dependencies detected. Learn more about Socket for GitHub ↗︎

Package New capabilities Transitives Size Publisher
npm/[email protected] network 0 9.38 MB limpbrains

🚮 Removed packages: npm/[email protected]

View full report↗︎

@limpbrains limpbrains changed the title fix: WIP fix: async beignet wallet Nov 19, 2024
@synonymdev synonymdev deleted a comment from socket-security bot Nov 19, 2024
@limpbrains limpbrains force-pushed the async-wallet branch 2 times, most recently from 95ff8c2 to 4a3cc1c Compare November 20, 2024 13:12
@limpbrains limpbrains marked this pull request as ready for review November 20, 2024 18:31
@limpbrains limpbrains requested a review from pwltr November 20, 2024 19:33
Copy link
Collaborator

@pwltr pwltr left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good for now, but agree it needs to be improved more

@limpbrains limpbrains merged commit 744f898 into master Nov 22, 2024
7 checks passed
@limpbrains limpbrains deleted the async-wallet branch November 22, 2024 15:50
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.

[Bug]: Unable to check status of tx

3 participants