I'm playing around with Dioxus to create a simple game. Multiple web views communicate through a server to send their state, and one "display" view regularly polls the server to display a common state.
So far it all works nicely, but now I would like to have the players web view update depending on what happens on the server. I managed to have #[server] parts which can be called from the players.
I use some hand-written javascript code injected using
to do this push / polling. Now I would like to be able from my javascript code to change the currently shown component. Any idea how I can do this? I looked at signals and all that, but cannot see how I can use them to change components. The only way I see how to change components is to use a rsx!{ Link { to: Route::OtherComponent } }. Or can I just change the document.location to something which is in the path?