Sanity Library Reference Docs
    Preparing search index...
    • Returns an application configuration by application id or application type, or null when none matches.

      An appType query matches the type-level config only (the one without an appId), so it is independent of the order the dashboard published configs in. An appId query matches that application's config.

      Suspends until the dashboard publishes its application configs.

      Parameters

      Returns ApplicationConfig | null

      function MediaLibraryConfig() {
      const config = useApplicationConfig({appType: 'media-library'})
      return config ? <span>{config.moduleId}</span> : <p>Not installed</p>
      }