Skip to content

Commit

Permalink
fix: remove debugging logs
Browse files Browse the repository at this point in the history
  • Loading branch information
snickbit committed Aug 7, 2023
1 parent 12650d2 commit 80e0fd0
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 6 deletions.
3 changes: 0 additions & 3 deletions packages/state/src/ReactiveState.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,6 @@ export class ReactiveState<T extends object = any> extends State<T> {
constructor(data: Partial<T> = {}) {
super(data)

console.log(`ReactiveState ${this.id} constructor`, {data, state: this.$state})

if (!this.proxy) {
throw new Error('No ReactiveState proxy')
}
Expand All @@ -27,7 +25,6 @@ export class ReactiveState<T extends object = any> extends State<T> {
}

$set(key: keyof T, value: any) {
console.log({key, value})
super.$set(key, value)
this.callWatchers(key, value)
}
Expand Down
3 changes: 0 additions & 3 deletions packages/state/src/SimpleState.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,6 @@ export class SimpleState<T extends object = any> {
this.state = {...data} as T

this.proxy = makeStateProxy.apply(this)

console.log(`SimpleState ${this.id} constructor`, {data, state: this.state})

return this.proxy
}
}

0 comments on commit 80e0fd0

Please sign in to comment.