-
-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
text in UI not reliably updating in a particular situation #908
Comments
I cannot reproduce this on my end. In any case, |
Thank you, do you see a way to fix the violation? All I want to do is have the button text change to "thinking" during the computation. |
In your full application is the |
Yes -- pretty much. It waits for a server to send the result of a computation. |
ooh gotcha I thought your computation was done locally, building off what Hecrj said with the " |
You can enable the |
That is a way better idea. I was not familiar with that. Thanks @yusdacra |
Cool, thank you. If I change the sleep line to |
I'd like to address this but am not sure how to proceed. In my app there are now two instances:
So these two things are totally unrelated. Is the proper way to do this still to use a subscription? It would be awesome to have an example that illustrated the flashing button thing (as in 2, above). |
Ya for 2 you could also do it with a command that |
Thank you! DX12 appears to be a Windows thing. I think the goal here should be to eliminate the |
Since this seems to be most likely a hardware compatibility issue, I will close this for now. If you are still struggling with the blocking in an async context issue, feel free to open a discussion and we will gladly help you! 😄 |
The problem was exhibited on a MacBook Pro (16-inch, 2019) running macOS 10.15.7.
The Rust version was 1.52.0.
The problem is possibly specific to tapping on a trackpad, as opposed to actually clicking.
In the example, there is a button, initially labeled "Submit". When one taps on it, it SHOULD
change to "thinking" for three seconds. Sometimes it does not. This is particularly the case
when one first opens the app.
It appears to be possible to eliminate the buggy behavior by adding the single line
after the line
Removing all
Event
code also fixes the problem, even though theEvent
code should in principle not do anything different than the default behavior.The example code can be run by:
Here is main.rs in the example.
|
The text was updated successfully, but these errors were encountered: