Skip to main content

Function: WorkspaceProvider()

WorkspaceProvider(props): Element

Defined in: src/workspace/workspaceProvider.tsx:158

Top-level component to mount and provide specified workspace context to the child UI components.

Parameters​

ParameterTypeDescription

props

{ children: ReactNode; onMount?: (instance) => void; workspace: TrackedWorkspaceContext; }

‐

props.children

ReactNode

Component children.

props.onMount?

(instance) => void

Handler to run when the context is mounted and UI components are ready.

See

useLoadedWorkspace

props.workspace

TrackedWorkspaceContext

Workspace context to provide to the child UI components.

Returns​

Element

See​

createWorkspace