subscribeToDeployment

Beta

subscribeToDeployment

Subscribe to deployment changes for the active branch.

framer.subscribeToDeployment(callback: (deployment: Deployment | null) => void): Unsubscribe

The callback receives null when the active branch has never been published. A transient loading state during a branch switch is not emitted as null.

Parameters

Returns

  • Unsubscribe