diff options
author | Eric Bailey <git@esb.lol> | 2023-07-19 14:24:35 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-07-19 14:24:35 -0500 |
commit | 302490cb31e0a955fe7aa9b4cc092a42c83c10fe (patch) | |
tree | d86bf94e7455dbac273268a198148706faca3f6f /src | |
parent | 0ae52e91ceaf1af41f12bfa6e76c7d719be5e0e5 (diff) | |
download | voidsky-302490cb31e0a955fe7aa9b4cc092a42c83c10fe.tar.zst |
wrap interval in runInAction (#1037)
Diffstat (limited to 'src')
-rw-r--r-- | src/state/models/ui/shell.ts | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/state/models/ui/shell.ts b/src/state/models/ui/shell.ts index 1c069232c..b6ae12fda 100644 --- a/src/state/models/ui/shell.ts +++ b/src/state/models/ui/shell.ts @@ -1,6 +1,6 @@ import {AppBskyEmbedRecord} from '@atproto/api' import {RootStoreModel} from '../root-store' -import {makeAutoObservable} from 'mobx' +import {makeAutoObservable, runInAction} from 'mobx' import {ProfileModel} from '../content/profile' import {isObj, hasProp} from 'lib/type-guards' import {Image as RNImage} from 'react-native-image-crop-picker' @@ -347,7 +347,9 @@ export class ShellUiModel { setupClock() { setInterval(() => { - this.tickEveryMinute = Date.now() + runInAction(() => { + this.tickEveryMinute = Date.now() + }) }, 60_000) } } |