-
Notifications
You must be signed in to change notification settings - Fork 334
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Gradio component tracking issue #6554
Comments
Hi @jleibs, I'm bringing this on here as well. radames/gradio-rerun-viewer#5 |
TL;DR: No, and it's difficult to do properly There are no such events exposed right now. The way The The problem with that approach is that there's no way to track the progress of the Some bundlers support the |
I see. I was thinking about trying loading = true
const viewer = await import("@rerun-io/web-viewer"); |
Yes, in that case it's already possible, by setting <script>
import { WebViewer } from "@rerun-io/web-viewer";
import { onMount } from "svelte";
let rr;
let loading = false;
onMount(() => {
rr = new WebViewer();
loading = true;
rr.start().then(() => loading = false);
return () => rr.stop();
});
</script> Or with the new <script>
import { WebViewer } from "@rerun-io/web-viewer";
import { onMount } from "svelte";
let rr;
let loading = false;
onMount(() => {
rr = new WebViewer();
loading = true;
rr.on("ready", () => loading = false);
rr.start();
return () => rr.stop();
});
</script> |
Perfect! that's enough IMO |
Issues from: https://github.com/radames/gradio-rerun-viewer
The text was updated successfully, but these errors were encountered: