Skip to content

Commit

Permalink
feat: remove console in demo
Browse files Browse the repository at this point in the history
  • Loading branch information
xsf0105 committed Aug 28, 2024
1 parent 8c6a2ab commit d6a4ad2
Show file tree
Hide file tree
Showing 5 changed files with 11 additions and 11 deletions.
4 changes: 2 additions & 2 deletions demo/src/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -67,11 +67,11 @@ class MyComponent extends QuarkElement {
}

componentDidUpdate() {
console.log("parent dom updated!")
// console.log("parent dom updated!")
}

componentDidMount() {
console.log("parent dom loaded!")
// console.log("parent dom loaded!")
this.showWelcome();
}

Expand Down
2 changes: 1 addition & 1 deletion demo/src/pages/child-second.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ class Child2 extends QuarkElement {
])

componentDidMount() {
console.log('dom loaded!', 'child-second')
// console.log('dom loaded!', 'child-second')
}

render() {
Expand Down
6 changes: 3 additions & 3 deletions demo/src/pages/child.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,9 @@ declare global {
class Child1 extends QuarkElement {
@property({ type: String })
text = "hello world"

componentDidMount() {
console.log('dom loaded!', 'child')
// console.log('dom loaded!', 'child')
}

goToLink() {
Expand All @@ -29,7 +29,7 @@ class Child1 extends QuarkElement {
word2: 'quark',
},
callback() {
console.log('enter function excuted')
// console.log('enter function excuted')
}
})
);
Expand Down
8 changes: 4 additions & 4 deletions demo/src/pages/home.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -37,24 +37,24 @@ class MyComponent extends QuarkElement {
}

componentDidMount() {
console.log("home dom loaded!")
// console.log("home dom loaded!")
this.initCounter();
}

componentWillUnmount() {
console.log('home dom will unmount');
// console.log('home dom will unmount');
window.clearTimeout(this._counterTimer);
}

@watch('count', { immediate: true })
countLogger(newVal, oldVal) {
console.log('home countLogger', newVal, oldVal);
// console.log('home countLogger', newVal, oldVal);
this.loggerRunCount++;
}

@computed()
get counterGreet() {
console.log('home @computed counterGreet')
// console.log('home @computed counterGreet')
return `${this.text} ${this.counter} times`;
}

Expand Down
2 changes: 1 addition & 1 deletion demo/src/pages/sub.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ class MyComponent extends QuarkElement {


componentDidMount() {
console.log("dom loaded!", 'sub')
// console.log("dom loaded!", 'sub')
// ...
}

Expand Down

0 comments on commit d6a4ad2

Please sign in to comment.