Replies: 1 comment 1 reply
-
|
|
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Problem
In certain logic "main loop" and "event action" access shared data via mutex.
Originally there was no problem, but as soon as I used the set of use_state the problem started. What is done writing in "main loop" is not visible in "event action".
If I removed use_statue.set, it worked as expected again.
The link below is my code where the problem occurred.
If you run it, it should be reproducible.
https://github.com/myyrakle/rustetris/blob/8e7e5389a5cfaa3113ee7606fc79090ad5822f5c/src/components/gamebox.rs#L24
Steps To Reproduce
Steps to reproduce the behavior:
Expected behavior
Screenshots

Environment:
Questionnaire
Beta Was this translation helpful? Give feedback.
All reactions