We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 35fcbba commit 029a529Copy full SHA for 029a529
docs-src/0.7/src/essentials/basics/effects.md
@@ -37,14 +37,13 @@ let mut loading = use_signal(|| false);
37
let mut loading_text = use_signal(|| "loading".to_string());
38
39
let subheading = use_memo(move || {
40
- if load() && load_text() == "loading" {
41
- return "The state is loading"
+ if loading() && loading_text() == "loading" {
+ return "The state is loading";
42
};
43
44
"The state is not loading"
45
});
46
47
-
48
rsx! {
49
h1 { "{subheading}" }
50
}
0 commit comments