{"size": 554, "ext": "js", "max_stars_repo_path": "packages/taro-mobx-common/src/store.js", "max_stars_repo_name": "ksti/taro", "max_stars_repo_stars_event_min_datetime": "2020-06-28T06:22:11.000Z", "max_stars_repo_stars_event_max_datetime": "2020-07-08T03:49:38.000Z", "max_issues_repo_path": "packages/taro-mobx-common/src/store.js", "max_issues_repo_name": "ksti/taro", "max_issues_repo_issues_event_min_datetime": "2021-01-11T09:34:55.000Z", "max_issues_repo_issues_event_max_datetime": "2021-01-11T09:34:55.000Z", "max_forks_repo_path": "packages/taro-mobx-common/src/store.js", "max_forks_repo_name": "ksti/taro", "max_forks_repo_forks_event_min_datetime": "2020-10-20T07:46:56.000Z", "max_forks_repo_forks_event_max_datetime": "2020-10-20T07:46:56.000Z"}
{"max_stars_count": 2, "max_issues_count": 1, "max_forks_count": 1, "avg_line_length": 25.1818181818, "max_line_length": 63, "alphanum_fraction": 0.6462093863}
let store = {}
const appGlobal = global || {}
const globalRef = Object.getPrototypeOf(appGlobal) || appGlobal

export function getStore () {
  if (process.env.TARO_ENV === 'alipay') {
    return my.taroMobxStore || {}
  } else if (process.env.TARO_ENV === 'quickapp') {
    return globalRef.taroMobxStore || {}
  }
  return store
}

export function setStore (arg) {
  if (process.env.TARO_ENV === 'alipay') {
    my.taroMobxStore = arg
  } else if (process.env.TARO_ENV === 'quickapp') {
    globalRef.taroMobxStore = arg
  } else {
    store = arg
  }
}