Load pack not disappearing in React #330
Unanswered
ViniciusAAssuncao
asked this question in
Question and Answer
Replies: 1 comment
-
In case you're still looking for an answer, or someone else is running into this problem. There is also a built-in event |
Beta Was this translation helpful? Give feedback.
0 replies
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.
-
I'm using the native state of WebGL in React which concerns a loading bar before the game starts;
const [progression, setProgression] = useState(0);
The implementation is simple, however I'm facing a problem just as simple, but that seems insoluble to me. When the progress reaches 1 and returns true allowing the game to run, the loading bar does not disappear, in this case the element contained in;
Loading {parseInt(progression * 100)}%
(I modified it a bit).How can I resolve this?
Beta Was this translation helpful? Give feedback.
All reactions