Replies: 1 comment
-
You can move your code that modifies the dom into an effect which runs after the component has been rendered to the dom. This section of the essentials guide talks about manually updating the dom: https://dioxuslabs.com/learn/0.6/essentials/breaking/#synchronizing-dom-updates-with-use-effect |
Beta Was this translation helpful? Give feedback.
0 replies
# for free
to join this conversation on GitHub.
Already have an account?
# to comment
-
Hey,
I would like to use plotly in my wasm only app. I have tried this
which fails with some RuntimeErrors, some panics and an unreachable executed, because, AFAICT, plotly.js is not yet loaded when the Future is run and tries to call some non-existing JS. If only spawn it on a button click, everything works.
Is there a way for me to spawn the Future once the page has been loaded?
Thanks,
Flo
Beta Was this translation helpful? Give feedback.
All reactions