diff options
author | 2022-07-07 09:31:50 +0200 | |
---|---|---|
committer | 2022-07-07 09:31:50 +0200 | |
commit | 71c52373f81cace664047edd19d9d289f45a4dff (patch) | |
tree | 69b3f1d45a8b3f1ceab9497ea3c96e9dc18e3166 /src/features/todos/store.js | |
parent | 6.0.0-nightly.91 [skip ci] (diff) | |
download | ferdium-app-71c52373f81cace664047edd19d9d289f45a4dff.tar.gz ferdium-app-71c52373f81cace664047edd19d9d289f45a4dff.tar.zst ferdium-app-71c52373f81cace664047edd19d9d289f45a4dff.zip |
chore: Mobx & React-Router upgrade (#406)
Co-authored-by: Vijay A <vraravam@users.noreply.github.com>
Diffstat (limited to 'src/features/todos/store.js')
-rw-r--r-- | src/features/todos/store.js | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/src/features/todos/store.js b/src/features/todos/store.js index 1a3d6c1e7..0f195f10d 100644 --- a/src/features/todos/store.js +++ b/src/features/todos/store.js | |||
@@ -1,4 +1,4 @@ | |||
1 | import { computed, action, observable } from 'mobx'; | 1 | import { computed, action, observable, makeObservable } from 'mobx'; |
2 | import localStorage from 'mobx-localstorage'; | 2 | import localStorage from 'mobx-localstorage'; |
3 | 3 | ||
4 | import { ThemeType } from '../../themes'; | 4 | import { ThemeType } from '../../themes'; |
@@ -33,6 +33,12 @@ export default class TodoStore extends FeatureStore { | |||
33 | 33 | ||
34 | isInitialized = false; | 34 | isInitialized = false; |
35 | 35 | ||
36 | constructor() { | ||
37 | super(); | ||
38 | |||
39 | makeObservable(this); | ||
40 | } | ||
41 | |||
36 | @computed get width() { | 42 | @computed get width() { |
37 | const width = this.settings.width || DEFAULT_TODOS_WIDTH; | 43 | const width = this.settings.width || DEFAULT_TODOS_WIDTH; |
38 | 44 | ||