-
-
Notifications
You must be signed in to change notification settings - Fork 72
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* feat: Persisted devtools routing * clean up * feat: More reliable devtools * clean up * feat: Persist devtools node inspector routing (#672) * feat: Persist devtools node inspector routing * clippy
- Loading branch information
Showing
14 changed files
with
434 additions
and
427 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,3 @@ | ||
mod use_selected_node; | ||
mod use_node_info; | ||
|
||
pub use use_selected_node::*; | ||
pub use use_node_info::*; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
use crate::state::DevtoolsChannel; | ||
use dioxus_radio::prelude::use_radio; | ||
use freya_native_core::prelude::NodeId; | ||
use freya_renderer::devtools::NodeInfo; | ||
|
||
pub fn use_node_info(node_id: NodeId) -> Option<NodeInfo> { | ||
let radio = use_radio(DevtoolsChannel::UpdatedDOM); | ||
let state = radio.read(); | ||
let nodes = state.devtools_receiver.borrow(); | ||
|
||
nodes.iter().find(|node| node.id == node_id).cloned() | ||
} |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.