File tree Expand file tree Collapse file tree 3 files changed +3
-7
lines changed
Expand file tree Collapse file tree 3 files changed +3
-7
lines changed Original file line number Diff line number Diff line change @@ -12,7 +12,7 @@ Rust bindings for `React`.
1212` Cargo.toml `
1313
1414``` toml
15- react-sys = " 1.0.0-alpha.10 "
15+ react-sys = " 1.0.0-alpha.11 "
1616```
1717
1818Though the version is at ` 1.x-alpha ` ,
Original file line number Diff line number Diff line change @@ -7,8 +7,6 @@ export function use_state_object(initial_value) {
77export function use_state_auto_clean ( initial_value , clean ) {
88 const obj = use_state_object ( initial_value ) ;
99 const state = obj . value ;
10- React . useEffect ( ( ) => {
11- clean ( state ) ;
12- } , [ state ] ) ;
10+ React . useEffect ( ( ) => ( ) => void clean ( state ) , [ state ] ) ;
1311 return obj ;
1412}
Original file line number Diff line number Diff line change @@ -5,8 +5,6 @@ export function use_state_object(initial_value) {
55export function use_state_auto_clean ( initial_value , clean ) {
66 const obj = use_state_object ( initial_value ) ;
77 const state = obj . value ;
8- React . useEffect ( ( ) => {
9- clean ( state ) ;
10- } , [ state ] ) ;
8+ React . useEffect ( ( ) => ( ) => void clean ( state ) , [ state ] ) ;
119 return obj ;
1210}
You can’t perform that action at this time.
0 commit comments