Skip to content

Commit 029a529

Browse files
committed
fix codeblock
1 parent 35fcbba commit 029a529

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

docs-src/0.7/src/essentials/basics/effects.md

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -37,14 +37,13 @@ let mut loading = use_signal(|| false);
3737
let mut loading_text = use_signal(|| "loading".to_string());
3838

3939
let subheading = use_memo(move || {
40-
if load() && load_text() == "loading" {
41-
return "The state is loading"
40+
if loading() && loading_text() == "loading" {
41+
return "The state is loading";
4242
};
4343

4444
"The state is not loading"
4545
});
4646

47-
4847
rsx! {
4948
h1 { "{subheading}" }
5049
}

0 commit comments

Comments
 (0)