diff --git a/src/buffer/vec.rs b/src/buffer/vec.rs index 2afdb97..76dc062 100644 --- a/src/buffer/vec.rs +++ b/src/buffer/vec.rs @@ -86,6 +86,7 @@ where pub fn with_data_arc_port(data: Arc>>, port: InnerViewPort>>) -> Self { port.set_view(Some(data.clone())); + port.notify(&VecDiff::Clear); for x in data.read().unwrap().iter().cloned() { port.notify(&VecDiff::Push(x)); }