Skip to content

Remove every call to the global variable #1540

@DavidRouyer

Description

@DavidRouyer

Alternatives:

  • Event bus
  • Local storage
  • Root store

Variables:

  • global.$VS.version -> root store
  • global.$VS.__DEMO_MODE__ -> root store or env.process variable handled by Webpack
  • global.$VS.isSSR -> Vue.prototype.$isServer
  • global.$VS.storeView -> root store
  • global.$VS.localCache -> Vue.prototype
  • global.$VS.twoStageCachingDisabled -> root store
  • global.$VS.twoStageCachingDelta1 -> root store
  • global.$VS.twoStageCachingDelta2 -> root store
  • global.$VS.userTokenInvalidateLock -> root store
  • global.$VS.config -> root store
  • global.$VS.cacheErrorsCount -> property of LocalForageCacheDriver
  • global.$VS.db.attributesCollection -> root store
  • global.$VS.db.cartsCollection -> root store
  • global.$VS.db.categoriesCollection -> root store
  • global.$VS.db.cmsData -> root store
  • global.$VS.db.checkoutFieldsCollection -> root store
  • global.$VS.db.claimsCollection -> root store
  • global.$VS.db.compareCollection -> root store
  • global.$VS.db.elasticCacheCollection -> root store
  • global.$VS.db.newsletterPreferencesCollection -> root store
  • global.$VS.db.ordersCollection -> root store
  • global.$VS.db.ordersHistoryCollection -> root store
  • global.$VS.db.syncTaskCollection -> root store
  • global.$VS.db.usersCollection -> root store
  • global.$VS.db.wishlistCollection -> root store
  • global.$VS.eventBus -> Vue.prototype
  • global.$VS.i18n -> Vue.prototype

Metadata

Metadata

Assignees

Labels

refactorCode refactoring

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions