Skip to content

ensureLayoutReady

Waits until the workspace layout is ready.

Resolves immediately when the layout is already ready; otherwise resolves once Obsidian fires the layout-ready event.

Import:

import { ensureLayoutReady } from 'obsidian-dev-utils/obsidian/workspace';

Signature:

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

Parameters:

ParameterTypeDescription
appAppThe Obsidian app.

Returns: Promise<void> — A Promise that resolves once the workspace layout is ready.