Returns the id of the application in the foreground, or null when Dashboard has none.
null
Suspends until Dashboard publishes the foreground application.
function ForegroundApplication() { const foregroundId = useApplicationForegroundId() return <span>{foregroundId ?? 'No foreground application'}</span>} Copy
function ForegroundApplication() { const foregroundId = useApplicationForegroundId() return <span>{foregroundId ?? 'No foreground application'}</span>}
Returns the id of the application in the foreground, or
nullwhen Dashboard has none.Suspends until Dashboard publishes the foreground application.