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 c0e01f9 commit df71924Copy full SHA for df71924
packages/signals/src/warnings.rs
@@ -121,7 +121,7 @@ fn app() -> Element {
121
let mut count2 = use_signal(|| 0);
122
123
use_effect(move || {
124
- count1.write(count2());
+ count1.set(count2());
125
});
126
}
127
2) Reading and Writing to the same signal in different scopes:
@@ -134,7 +134,7 @@ fn app() -> Element {
134
135
// This effect both reads and writes to count
136
println!("{}", count());
137
- count.write(count());
+ count.set(1);
138
139
140
@@ -145,7 +145,7 @@ fn app() -> Element {
145
let mut count = use_signal(|| 0);
146
147
148
149
150
151
0 commit comments