Skip to content

Commit 01535d5

Browse files
committed
simplify doc and bump version 0.6.1
1 parent 25e7d7f commit 01535d5

3 files changed

Lines changed: 2 additions & 6 deletions

File tree

crates/yew-hooks/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "yew-hooks"
3-
version = "0.6.0"
3+
version = "0.6.1"
44
edition = "2021"
55
authors = ["Jet Li <jing.i.qin@icloud.com>"]
66
categories = ["gui", "wasm", "web-programming"]

crates/yew-hooks/src/hooks/use_effect_once.rs

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,10 +14,8 @@ use yew::prelude::*;
1414
/// fn effect_once() -> Html {
1515
/// use_effect_once(|| {
1616
/// debug!("Running effect once on mount");
17-
///
18-
/// || debug!("Running clean-up of effect on unmount")
1917
/// });
20-
///
18+
///
2119
/// html! {
2220
/// <>
2321
/// </>

examples/yew-app/src/app/hooks/use_effect_once.rs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,6 @@ use crate::components::ui::button::Button;
99
fn MyComponent() -> Html {
1010
use_effect_once(|| {
1111
alert("Running effect once on mount");
12-
13-
|| alert("Running clean-up of effect on unmount")
1412
});
1513

1614
html! {

0 commit comments

Comments
 (0)