Skip to content

Commit

Permalink
updated README on enable_scope and disable_scope. (#134)
Browse files Browse the repository at this point in the history
  • Loading branch information
rkimoakbioinformatics authored Aug 26, 2024
1 parent b966a5f commit 9c66ebb
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -87,14 +87,14 @@ pub fn SomeComponent() -> impl IntoView {

// switch into the inner scope
use_hotkeys!(("keyi", "outer") => move |_| {
disable_scope("outer");
enable_scope("inner");
disable_scope.call("outer".to_string());
enable_scope.call("inner".to_string());
});

// switch into the outer scope
use_hotkeys!(("keyo", "inner") => move |_| {
disable_scope("inner");
enable_scope("outer");
disable_scope.call("inner".to_string());
enable_scope.call("outer".to_string());
});

view! {
Expand Down

0 comments on commit 9c66ebb

Please sign in to comment.