"Creating EventLoop multiple times is not supported." after switching pages in single-page webapp #10373
Unanswered
SIGSTACKFAULT
asked this question in
Q&A
Replies: 1 comment 1 reply
-
@SIGSTACKFAULT I am getting the same error "Creating EventLoop multiple times is not supported.". Did you manage to solve this issue? |
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.
-
nobody replied to my thread on the bevy discord
My bevy game is compiled to WASM and linked into a Vue app, which works fine the first time you visit the page.
But if you switch away from it (unmounting the vue component it's part of) and back it throws the error in the title.
permalink to a version of my project which has this issue, for posterity
Here's a vjeo of me reproing it, or you can try it yourself on https://sigstackfault.gitlab.io/fleetwright-web-designer/#/vtt (observe it working, click on "editor" in the top-right, then on "vtt", then observe it not working)
2023-11-03.21-56-20.mp4
here's the Vue code that initializes WASM. It's inside a Vue component which is mounted by Vue Router:
I can run code when the component is unmounted but i couldn't figure out what
Beta Was this translation helpful? Give feedback.
All reactions