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) • 414 B
text/typescript
import { ObjSpaceId } from 'scrivito_sdk/client';
import { objDataFor } from 'scrivito_sdk/data/obj_data_store';
import { withoutLoading } from 'scrivito_sdk/loadable';
/** get the version of Obj for the purpose of invalidation */
export function getObjVersion(objSpaceId: ObjSpaceId, objId: string): string {
return withoutLoading(
() => objDataFor(objSpaceId, objId).getAttribute('_version') || ''
);
}