Skip to content

ensureMetadataCacheReady

Ensures that the metadata cache is ready for all files.

Import:

import { ensureMetadataCacheReady } from 'obsidian-dev-utils/obsidian/metadata-cache';

Signature:

function ensureMetadataCacheReady(app: App): Promise<void>

Parameters:

ParameterTypeDescription
appAppThe Obsidian app instance.

Returns: Promise<void> — A Promise that resolves when the metadata cache is ready.