Update to latest APIs

This commit is contained in:
Paul Frazee 2022-10-26 14:34:47 -05:00
parent 349cfe7177
commit 1983512fef
74 changed files with 2334 additions and 525 deletions

View file

@ -1,5 +1,5 @@
import {autorun} from 'mobx'
import AdxApi from '../third-party/api'
import AtpApi from '../third-party/api'
import {RootStoreModel} from './models/root-store'
import * as libapi from './lib/api'
import * as storage from './lib/storage'
@ -17,7 +17,7 @@ export async function setupState() {
libapi.doPolyfill()
const api = AdxApi.service(DEFAULT_SERVICE)
const api = AtpApi.service(DEFAULT_SERVICE)
rootStore = new RootStoreModel(api)
try {
data = (await storage.load(ROOT_STATE_STORAGE_KEY)) || {}