Skip to content

Commit b4ec4ac

Browse files
authored
use last version of use_effect_with in README.md (#279)
1 parent 833af05 commit b4ec4ac

File tree

1 file changed

+4
-5
lines changed

1 file changed

+4
-5
lines changed

README.md

+4-5
Original file line numberDiff line numberDiff line change
@@ -182,11 +182,10 @@ pub fn plot_component() -> Html {
182182
});
183183

184184

185-
use_effect_with_deps(move |_| {
186-
p.run();
187-
|| ()
188-
}, (),
189-
);
185+
use_effect_with((), move |_| {
186+
p.run();
187+
|| ()
188+
});
190189

191190

192191
html! {

0 commit comments

Comments
 (0)