scrivito
Version:
Scrivito is a professional, yet easy to use SaaS Enterprise Content Management Service, built for digital agencies and medium to large businesses. It is completely maintenance-free, cost-effective, and has unprecedented performance and security.
11 lines (9 loc) • 352 B
text/typescript
import { capture } from 'scrivito_sdk/loadable';
/** Evaluate the loadable function fn, but without causing any loading.
*
* You may call with or without a loading context. It does not matter.
* Even if you call with a loading context, no loading is triggered.
*/
export function withoutLoading<T>(fn: () => T): T {
return capture(fn).result;
}