Commit 635766c6
635766c6e3e2Merged
Scott Nixon <[email protected]> ยท 9 months ago ยท 2 files ยท ~2 modified
Description
Fix web component warnings: unused vars, borrow in EventSource
- Move terminal clones into hydrate-only block to avoid unused var warnings
- Pass &url to EventSource::new instead of owned String
Details
- Commit
- 635766c6e3e2
- Parent
- a4a7bc436093
crates/attractor-web/src/components/document_viewer.rsmodifiedView file
@@ -72,7 +72,7 @@
7272
use futures::StreamExt as _;7373
7474
let url = format!("/api/documents/stream?project_id={}", project_id);75-
match gloo_net::eventsource::futures::EventSource::new(url) {75+
match gloo_net::eventsource::futures::EventSource::new(&url) {7676
Ok(mut es) => {7777
let mut stream = es.subscribe("document_update").unwrap();7878
crates/attractor-web/src/components/terminal.rsmodifiedView file
Loading diffโฆ