How to use the ember-ast-hot-load/utils/cleaners.clearContainerCache function in ember-ast-hot-load

To help you get started, we’ve selected a few ember-ast-hot-load examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github lifeart / ember-ast-hot-load / addon / services / hot-loader.js View on Github external
forgetComponent(name, isMU = true) {
    const cacheKey = this.get('iterationId') + '/' + name + '/' + isMU;
    if (FORGET_CACHE.includes(cacheKey)) {
      return;
    }
    if (isMU) {
      const muNames = this.getPossibleMUComponentNames(name);
      muNames.forEach((possibleMuName)=>{
        clearContainerCache(this, possibleMuName);
      });
    }
    clearContainerCache(this, name);
    FORGET_CACHE.push(cacheKey);
  },
  clearRequirejs(name) {
github lifeart / ember-ast-hot-load / addon / services / hot-loader.js View on Github external
muNames.forEach((possibleMuName)=>{
        clearContainerCache(this, possibleMuName);
      });
    }