chore: rollback to option instead of anyhow
This commit is contained in:
1 parent
d6804884ab
commit
d3be971f4e
21 files changed
+45
-56
No files matched your search
@@ -10,7 +10,7 @@ use dioxus_core::{ElementId, RenderReturn, Scope};
|
||||
pub use input::*;
|
||||
|
||||
pub(crate) fn get_root_id<T>(cx: Scope<T>) -> Option<ElementId> {
|
||||
if let RenderReturn::Sync(Ok(sync)) = cx.root_node() {
|
||||
if let RenderReturn::Sync(Some(sync)) = cx.root_node() {
|
||||
sync.root_ids.get(0).and_then(|id| id.get())
|
||||
} else {
|
||||
None
|
||||
|
||||
Reference in new issue
Block a user