chore: refactor root view

This commit is contained in:
2025-02-10 15:24:42 +07:00
parent 0347e8b3c5
commit bfc9588738
8 changed files with 40 additions and 62 deletions

View File

@@ -212,12 +212,6 @@ impl Root {
pub fn view(&self) -> &AnyView {
&self.view
}
/// Set the root view of the Root.
pub fn set_view(&mut self, view: AnyView, cx: &mut Context<Self>) {
self.view = view;
cx.notify();
}
}
impl Render for Root {