-
Notifications
You must be signed in to change notification settings - Fork 53
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: Generate address qr in suspended thread #279
Fix: Generate address qr in suspended thread #279
Conversation
yellowHatpro
commented
Mar 25, 2023
•
edited
Loading
edited
- Fixed: QR image generating taking too long #278
Hi @yellowHatpro , would clicking the
|
As per my fixes, I am calling the QR-generating function inside a Launched Effect (and inside the IO thread), whose key is the address itself. So if the address is changed, it will then only prompt the QR-generating function (only once) to be called again. |
Oh sorry for not clarifying, I was referring to issue #286 . Just in case multiple threads are created when users press the generate qr code more than once here and something unexpected happens. I think adding a spinning circle might be a good feature to have, and you can open up a new issue (and pr) for that! |
Aaaalright I am on it 🚀😁 |
Thanks, so just to confirm again does pressing the |
Hi, I don't see anything happen when I click the |
So I think no new threads are spawned on clicking the button |
And also, as per the current implementation of the |
Looks good to me! Sorry for not catching it earlier, could you quickly rename the commit to our convention, something like the PR name, i.e. |
@darkvoid32 I've changed the PR and Commit name accordingly |
I am not sure, but did you mean the commit message? |
Yeap I meant the commit message! Just merge all of them back into 1 commit and its good to go afterwards. |
bf711e4
to
c7e6191
Compare
@darkvoid32 done senpaii✅ |