Function

useTimelineTrackCommands

Provides stable track commands without subscribing to track or geometry updates. Compose with `useTimelineTracks` for collection state or `useTimelineTrack` for row state. All commands validate current engine state at invocation.

Signature

Type Definition
useTimelineTrackCommands(): UseTimelineTrackCommandsResult

Returns

Track selection, organization, and state commands.

Examples

tsx Example
const { moveTrack } = useTimelineTrackCommands();
return <button onClick={() => moveTrack('audio', 0)}>Move audio to first row</button>;