From 9c66ebbdbea3b579afc8c4bfbbfaa4b47406534f Mon Sep 17 00:00:00 2001 From: Ryangguk Kim <13386712+rkimoakbioinformatics@users.noreply.github.com> Date: Mon, 26 Aug 2024 12:57:19 -0400 Subject: [PATCH] updated README on enable_scope and disable_scope. (#134) --- README.md | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index 409eb1b..24f9737 100644 --- a/README.md +++ b/README.md @@ -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! {