Skip to content

Commit

Permalink
app: Use makeAutoObservable
Browse files Browse the repository at this point in the history
  • Loading branch information
evanpurkhiser committed Jan 13, 2021
1 parent 39b088f commit fcff5fc
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions src/shared/store/index.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import {User} from '@sentry/types';
import * as ip from 'ip-address';
import {identity} from 'lodash';
import {action, computed, makeObservable, observable, toJS} from 'mobx';
import {action, computed, makeAutoObservable, observable, toJS} from 'mobx';
import {
CDJStatus,
Device,
Expand Down Expand Up @@ -79,7 +79,7 @@ export class DeviceStore {
hydrationProgress = observable.map<MediaSlot, HydrationInfo>();

constructor(device: Device) {
makeObservable(this);
makeAutoObservable(this);

this.device = device;

Expand Down Expand Up @@ -118,7 +118,7 @@ export class HydrationInfo {
isDone = false;

constructor() {
makeObservable(this);
makeAutoObservable(this);
}
}

Expand Down Expand Up @@ -153,7 +153,7 @@ export class MixstatusStore {
trackHistory = observable.array<PlayedTrack>();

constructor() {
makeObservable(this);
makeAutoObservable(this);
}
}

Expand Down Expand Up @@ -209,7 +209,7 @@ export class AppConfig {
}

constructor() {
makeObservable(this);
makeAutoObservable(this);
}
}

Expand Down Expand Up @@ -275,7 +275,7 @@ export class AppStore {
}

constructor() {
makeObservable(this);
makeAutoObservable(this);
}
}

Expand Down

0 comments on commit fcff5fc

Please sign in to comment.