//#region src/runtime/server/renderer/cache.ts function lazyCachedFunction(fn) { let res = null; return () => { if (res === null) res = fn().catch((err) => { res = null; throw err; }); return res; }; } //#endregion export { lazyCachedFunction };