Skip to content

WorkspaceLayoutStateComponent.onLayoutLoad method

WorkspaceLayoutStateComponent › onLayoutLoad

Subscribes to layout loads: a saved workspace loaded, the layout restored at startup, or the saved layout read when the component is first loaded after layout-ready. Every value may have changed.

Signature:

onLayoutLoad(callback: () => void): () => void

Parameters:

ParameterTypeDescription
callback() => voidCalled after the layout is loaded, once its leaves exist.

Returns: () => void — A function that unsubscribes. Unloading the component unsubscribes too.