Skip to content

Commit

Permalink
refactor: remove useless
Browse files Browse the repository at this point in the history
  • Loading branch information
wewoor committed Dec 11, 2020
1 parent 4c09efa commit 9345916
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions src/react/mapState.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -21,12 +21,9 @@ export function mapState<S>(
};
}

_count = 0;

componentDidMount() {
// There is no declare state parameter as IObservable type, so must convert to any type.
if ((state as any).observe) {
console.log('mapState:', this._count++);
(state as any).observe(this.onChange);
} else {
Logger.error(
Expand Down

0 comments on commit 9345916

Please sign in to comment.