Skip to content

WorkspaceLayoutStateKey.onChange

WorkspaceLayoutStateKey › onChange

Type: (callback: (change: WorkspaceLayoutStateChange<T>) => void) => () => void

Subscribes to changes of this key made through set or unset, in any scope and from any copy of the library. A layout load is reported through WorkspaceLayoutStateComponent.onLayoutLoad instead.