Sanity Library Reference Docs
    Preparing search index...
    • Returns the applications and installations available in the dashboard, in one consistent shape.

      Suspends until the dashboard publishes its list; a cleared list is empty. Throws a TopicError to the nearest error boundary when the dashboard fails to load. Every entry exposes the same base fields plus views and webWorkers; type distinguishes applications ('studio' | 'coreApp') from installations ('installation'), which also carry the raw record under installation. isLocal marks applications served by a CLI dev server.

      Returns DashboardApplication[]

      function Applications() {
      const applications = useApplications()
      return applications.map((application) => <div key={application.id}>{application.title}</div>)
      }