Skip to content

Commit

Permalink
use last version of use_effect_with in README.md (#279)
Browse files Browse the repository at this point in the history
  • Loading branch information
Hyagoro authored Feb 18, 2025
1 parent 833af05 commit b4ec4ac
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -182,11 +182,10 @@ pub fn plot_component() -> Html {
});


use_effect_with_deps(move |_| {
p.run();
|| ()
}, (),
);
use_effect_with((), move |_| {
p.run();
|| ()
});


html! {
Expand Down

0 comments on commit b4ec4ac

Please sign in to comment.