keepAliveCompCache.ts
460 Bytes
const useKeepAliveCompCache = defineStore(
'keepAliveCompCache',
() => {
const keepAliveCompCache = new Map();
function add(wrapperName, wrapper) {
keepAliveCompCache.set(wrapperName, wrapper)
}
function remove(wrapperName) {
keepAliveCompCache.delete(wrapperName);
}
return {
keepAliveCompCache,
add,
remove
}
},
)
export default useKeepAliveCompCache