Skip to content

Commit e436050

Browse files
committed
rm log
1 parent 213927e commit e436050

File tree

2 files changed

+1
-4
lines changed

2 files changed

+1
-4
lines changed

examples/node-demo/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ async function test1() {
3939

4040
root.render(null)
4141
await sleep(10)
42-
if (arr.join('') !== 'Unmount parentUnmount child') {
42+
if (arr.join(',') !== 'Unmount parent,Unmount child') {
4343
throw new Error('test1 failed')
4444
}
4545
}

packages/react-noop/src/host_config.rs

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,6 @@ impl HostConfig for ReactNoopHostConfig {
9595
fn append_initial_child(&self, parent: Rc<dyn Any>, child: Rc<dyn Any>) {
9696
let p = parent.clone().downcast::<JsValue>().unwrap();
9797
let c = child.clone().downcast::<JsValue>().unwrap();
98-
log!("append_initial_child {:?} {:?}", p, c);
9998
let prev_parent = derive_from_js_value(&c, "parent").as_f64().unwrap();
10099
let parent_id = derive_from_js_value(&p, "id").as_f64().unwrap();
101100
if prev_parent != -1.0 && prev_parent != parent_id {
@@ -110,7 +109,6 @@ impl HostConfig for ReactNoopHostConfig {
110109
fn append_child_to_container(&self, child: Rc<dyn Any>, container: Rc<dyn Any>) {
111110
let container = container.clone().downcast::<JsValue>().unwrap();
112111
let c = child.clone().downcast::<JsValue>().unwrap();
113-
log!("append_child_to_container {:?} {:?}", container, c);
114112
let prev_parent = derive_from_js_value(&c, "parent").as_f64().unwrap();
115113
let root_id = derive_from_js_value(&container, "rootId").as_f64().unwrap();
116114
if prev_parent != -1.0 && prev_parent != root_id {
@@ -124,7 +122,6 @@ impl HostConfig for ReactNoopHostConfig {
124122
children.splice(index as u32, 1, &JsValue::undefined());
125123
}
126124
children.push(&c);
127-
log!("append_child_to_container {:?} {:?}", container, c);
128125
}
129126

130127
fn remove_child(&self, child: Rc<dyn Any>, container: Rc<dyn Any>) {

0 commit comments

Comments
 (0)