Add profile info caching

This commit is contained in:
Paul Frazee 2022-11-14 16:56:59 -06:00
parent 723dee5704
commit 6e93301542
3 changed files with 47 additions and 2 deletions

View file

@ -10,6 +10,7 @@ import {isObj, hasProp} from '../lib/type-guards'
import {SessionModel} from './session'
import {NavigationModel} from './navigation'
import {ShellUiModel} from './shell-ui'
import {ProfilesViewModel} from './profiles-view'
import {MeModel} from './me'
import {OnboardModel} from './onboard'
@ -19,6 +20,7 @@ export class RootStoreModel {
shell = new ShellUiModel()
me = new MeModel(this)
onboard = new OnboardModel()
profiles = new ProfilesViewModel(this)
constructor(public api: SessionServiceClient) {
makeAutoObservable(this, {