fix rendering issue

This commit is contained in:
Jonathan Kelley committed 2024-01-11 17:15:01 -08:00
1 parent 8c94f0bc4a
commit 8beec2f41f
1 file changed
+1 -7
+1 -7
View File
@@ -196,15 +196,9 @@ impl<P: 'static + Clone> App<P> {
}
pub fn handle_initialize_msg(&mut self, id: WindowId) {
// view.dom
// .rebuild(&mut *view.desktop_context.mutation_state.borrow_mut());
// send_edits(&view.desktop_context);
println!("initialize message received, sending edits to {id:?}");
let view = self.webviews.get_mut(&id).unwrap();
view.dom
.render_immediate(&mut *view.desktop_context.mutation_state.borrow_mut());
.rebuild(&mut *view.desktop_context.mutation_state.borrow_mut());
view.desktop_context.send_edits();
view.desktop_context
.window