ember-app-scheduler
Version:
Ember addon to schedule work at different phases of app life cycle.
19 lines (15 loc) • 546 B
JavaScript
;
const calculateCacheKeyForTree = require('./calculate-cache-key-for-tree');
/*
An implementation of Addon#cacheKeyForTree that assumes the return values of
all trees is stable. This makes it easy to opt-back-in to tree caching for
addons that implement stable overrides of treeFor hooks.
@public
@method cacheKeyForStableTree
@param {String} treeType
@return {String} cacheKey
*/
module.exports = function cacheKeyForStableTree(treeType) {
let addon = this;
return calculateCacheKeyForTree(treeType, addon);
};